summaryrefslogtreecommitdiffstats
path: root/tests/auto/qopcuaclient/tst_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qopcuaclient/tst_client.cpp')
-rw-r--r--tests/auto/qopcuaclient/tst_client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp
index 0262d1f..4dbaa15 100644
--- a/tests/auto/qopcuaclient/tst_client.cpp
+++ b/tests/auto/qopcuaclient/tst_client.cpp
@@ -49,6 +49,7 @@
#include <QtTest/QtTest>
#include <QTcpSocket>
#include <QTcpServer>
+#include <QVariantMap>
class OpcuaConnector
{
@@ -535,7 +536,11 @@ void Tst_QOpcUaClient::initTestCase()
const QHostAddress defaultHost(QHostAddress::LocalHost);
for (const auto &backend: m_backends) {
- QOpcUaClient *client = m_opcUa.createClient(backend);
+ QVariantMap backendOptions;
+ if (backend == QLatin1String("uacpp"))
+ backendOptions.insert(QLatin1String("disableEncryptedPasswordCheck"), true);
+
+ QOpcUaClient *client = m_opcUa.createClient(backend, backendOptions);
QVERIFY2(client != nullptr,
QString("Loading backend failed: %1").arg(backend).toLatin1().data());
client->setParent(this);