From 7f49ef0fdbe26c9d639e52c3de1fd46ee3af7ab4 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Mon, 23 Apr 2018 11:35:06 +0200 Subject: Fix the qtro template autotest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit start the server after the SignalSpy is created Change-Id: If7425a6d44ea8bd429a97bd64af7b68305e4eeeb Reviewed-by: Antti Hölttä --- .../projects/org-example-echo-qtro/server_qtro_test/tst_echoqtro.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/core/ivigenerator/projects/org-example-echo-qtro/server_qtro_test/tst_echoqtro.cpp b/tests/auto/core/ivigenerator/projects/org-example-echo-qtro/server_qtro_test/tst_echoqtro.cpp index 3883b60..2c2a86b 100644 --- a/tests/auto/core/ivigenerator/projects/org-example-echo-qtro/server_qtro_test/tst_echoqtro.cpp +++ b/tests/auto/core/ivigenerator/projects/org-example-echo-qtro/server_qtro_test/tst_echoqtro.cpp @@ -91,10 +91,11 @@ void EchoQtroTest::testInit() QVERIFY(!client.isInitialized()); QCOMPARE(client.error(), QIviAbstractFeature::NoError); - QVERIFY(server.start()); - //wait until the client has connected and initial values are set QSignalSpy initSpy(&client, SIGNAL(isInitializedChanged(bool))); + + QVERIFY(server.start()); + QVERIFY(initSpy.isValid()); initSpy.wait(1000); QCOMPARE(initSpy.count(), 1); -- cgit v1.2.1