Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 9788f8c

Browse files
committed
test loop
1 parent eb29ff8 commit 9788f8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/auto/restclient/tst_global.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ void initTestJsonServer(QString relativeDbPath)
2525

2626
inFile.close();
2727
outFile.close();
28-
QThread::sleep(10);//Time for the server to reload the database
28+
for(auto i = 0; i < 7; i++) {
29+
QCoreApplication::processEvents();
30+
QThread::sleep(1);//Time for the server to reload the database
31+
}
2932
}
3033

3134
QtRestClient::RestClient *createClient(QObject *parent)

0 commit comments

Comments
 (0)