Make tst_QQmlInspector::reloadQmlWindow() fail more quickly

It's annoying that we have to wait for 5s, just for the confirmation
that QTBUG-33376 isn't fixed.

Change-Id: I6296cc05d6dc7240ec3182ff10b19e40d5d4e599
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
Ulf Hermann 2015-07-16 11:27:14 +02:00
parent c6200dcf3a
commit 5ba31c335d
1 changed files with 2 additions and 2 deletions

View File

@ -177,8 +177,8 @@ void tst_QQmlInspector::reloadQmlWindow()
QVERIFY(QQmlDebugTest::waitForSignal(m_client, SIGNAL(responseReceived())));
QEXPECT_FAIL("", "cannot debug with a QML file containing a top-level Window", Abort); // QTBUG-33376
QTRY_COMPARE(m_process->output().contains(
QString("version 2.0")), true);
// TODO: remove the timeout once we don't expect it to fail anymore.
QTRY_VERIFY_WITH_TIMEOUT(m_process->output().contains(QString("version 2.0")), 1);
QCOMPARE(m_client->m_requestResult, true);
QCOMPARE(m_client->m_reloadRequestId, m_client->m_responseId);