diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2018-04-04 11:51:50 +0200 |
---|---|---|
committer | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2018-04-05 18:13:25 +0000 |
commit | 9fc143f3c6a1530ec20cdc19d4e28658ac7b0033 (patch) | |
tree | 919a33fa265dafed0e7c5013dbb9fae6b9d513f9 | |
parent | c3f21597ede19ae2b105a114773698052b83e46c (diff) |
Initialize readWriteNode before checking the value
This makes the multipleClients test independent from the success of the
dataChangeSubscription test.
Change-Id: Iaa7b15d0746c8096db006d638c0601a9e6af0afa
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | tests/auto/qopcuaclient/tst_client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp index c947a06..0e243d5 100644 --- a/tests/auto/qopcuaclient/tst_client.cpp +++ b/tests/auto/qopcuaclient/tst_client.cpp @@ -832,6 +832,7 @@ void Tst_QOpcUaClient::multipleClients() opcuaClient->connectToEndpoint(m_endpoint); QTRY_VERIFY2(opcuaClient->state() == QOpcUaClient::Connected, "Could not connect to server"); QScopedPointer<QOpcUaNode> node(opcuaClient->node(readWriteNode)); + WRITE_VALUE_ATTRIBUTE(node, 42.0, QOpcUa::Types::Double); READ_MANDATORY_VARIABLE_NODE(node); QCOMPARE(node->attribute(QOpcUa::NodeAttribute::Value).toDouble(), 42.0); QScopedPointer<QOpcUaClient> b(m_opcUa.createClient(opcuaClient->backend())); |