@@ -198,7 +198,9 @@ TestManager::TestManager(int& argc, char** argv)
198
198
clog.flush ();
199
199
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)
200
200
201
+ qWarning () << " Connecting to connected" ;
201
202
connect (c, &Connection::connected, this , [this ] {
203
+ qWarning () << " Connected" ;
202
204
if (QUO_ALARM (c->homeserver ().isEmpty () || !c->homeserver ().isValid ())
203
205
|| QUO_ALARM (c->domain () != c->userId ().section (u' :' , 1 ))) {
204
206
clog << " Connection information doesn't look right, "
@@ -252,17 +254,21 @@ TestManager::TestManager(int& argc, char** argv)
252
254
253
255
void TestManager::setupAndRun ()
254
256
{
257
+ qWarning () << 1 ;
255
258
Q_ASSERT (!c->homeserver ().isEmpty () && c->homeserver ().isValid ());
256
259
Q_ASSERT (c->domain () == c->userId ().section (u' :' , 1 ));
257
260
clog << " Connected, server: " << c->homeserver ().toDisplayString ().toStdString () << ' \n '
258
261
<< " Access token: " << c->accessToken ().toStdString () << endl;
259
262
263
+ qWarning () << 2 ;
260
264
connect (c, &Connection::loadedRoomState, this , &TestManager::onNewRoom);
261
265
262
266
c->setLazyLoading (true );
263
267
268
+ qWarning () << 3 ;
264
269
clog << " Joining " << targetRoomName.toStdString () << endl;
265
270
c->joinAndGetRoom (targetRoomName).then (this , [this ](Room* room) {
271
+ qWarning () << 4 ;
266
272
if (!room) {
267
273
clog << " Failed to join the test room" << endl;
268
274
finalize ();
@@ -965,7 +971,6 @@ void TestManager::finalize(const QString& lastWords)
965
971
clog << " Logging out" << endl;
966
972
c->logout ().then (
967
973
this , [this , lastWords] {
968
- // clog << lastWords.toStdString() << endl;
969
974
QCoreApplication::exit (!testSuite ? -3
970
975
: succeeded.empty () && failed.empty ()
971
976
&& running.empty ()
0 commit comments