diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2018-02-27 09:40:17 +0100 |
---|---|---|
committer | Jannis Völker <jannis.voelker@basyskom.com> | 2018-02-28 07:19:15 +0000 |
commit | d13d40ec9a88c5ade19e77e9b74f1a5825234332 (patch) | |
tree | 775df96fe8bde94537b2d95fcfc03f3b6cebfa22 | |
parent | e6410a0fed4c7f43df28dfbf6e02e6db0e145971 (diff) |
Reduce number of children in largeTestFolder to 100
With 1001 children, the freeopcua getChildren test randomly runs
into a timeout when running in the CI.
Reducing the number of children to retrieve should make the test
more stable.
Change-Id: Iee44e5df20609ac17070549618b02633e2ae0c86
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | tests/auto/qopcuaclient/tst_client.cpp | 2 | ||||
-rw-r--r-- | tests/open62541-testserver/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp index 494d4e7..732cb06 100644 --- a/tests/auto/qopcuaclient/tst_client.cpp +++ b/tests/auto/qopcuaclient/tst_client.cpp @@ -509,7 +509,7 @@ void Tst_QOpcUaClient::getChildren() spy.wait(); QCOMPARE(spy.size(), 1); QVector<QOpcUaReferenceDescription> ref = spy.at(0).at(0).value<QVector<QOpcUaReferenceDescription>>(); - QCOMPARE(ref.size(), 1001); + QCOMPARE(ref.size(), 100); } void Tst_QOpcUaClient::childrenIdsString() diff --git a/tests/open62541-testserver/main.cpp b/tests/open62541-testserver/main.cpp index ff98d22..8ac7d28 100644 --- a/tests/open62541-testserver/main.cpp +++ b/tests/open62541-testserver/main.cpp @@ -65,7 +65,7 @@ int main(int argc, char **argv) const UA_NodeId largeTestFolder = server.addFolder("ns=1;s=Large.Folder", "Large_Folder"); - for (int x = 0; x <= 1000; x++) + for (int x = 0; x < 100; ++x) server.addObject(largeTestFolder, idx, ""); const UA_NodeId testFolder = server.addFolder("ns=3;s=TestFolder", "TestFolder"); |