mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
check received results count instead of timeout in QHostInfo benchmark
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
e6293ea8bf
commit
16bd09d842
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ void tst_qhostinfo::lookupSpeed()
|
|||
for (int i = 0; i < hostnameList.size(); i++)
|
||||
QHostInfo::lookupHost(hostnameList.at(i), &receiver, SLOT(resultsReady(const QHostInfo)));
|
||||
QTestEventLoop::instance().enterLoop(20);
|
||||
QVERIFY(!QTestEventLoop::instance().timeout());
|
||||
QVERIFY(receiver.receiveCount == COUNT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue