diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2018-04-23 11:35:06 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2018-04-25 11:52:24 +0000 |
commit | 7f49ef0fdbe26c9d639e52c3de1fd46ee3af7ab4 (patch) | |
tree | 7691a3ff5f8189cca9ef2409856b041c92b2f4f4 | |
parent | 6ec2725aeb7351007473e1c9d4425c0ec0c3df85 (diff) |
Fix the qtro template autotest
start the server after the SignalSpy is created
Change-Id: If7425a6d44ea8bd429a97bd64af7b68305e4eeeb
Reviewed-by: Antti Hölttä <ahoelttae@luxoft.com>
-rw-r--r-- | tests/auto/core/ivigenerator/projects/org-example-echo-qtro/server_qtro_test/tst_echoqtro.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); |