diff --git a/client/tests/testUiAllowedDnsModelAndController.cpp b/client/tests/testUiAllowedDnsModelAndController.cpp index 46aee886b..18144a96a 100644 --- a/client/tests/testUiAllowedDnsModelAndController.cpp +++ b/client/tests/testUiAllowedDnsModelAndController.cpp @@ -81,7 +81,8 @@ private slots: QVERIFY2(allowedDnsModelIndex.isValid(), "Site model index should be valid"); auto dnsIp = m_coreController->m_allowedDnsModel->data(allowedDnsModelIndex, AllowedDnsModel::IpRole); - QVERIFY2(dnsIp == ip, QString("app path should be %1, got %2").arg(ip, appPath)); + QString msg = QString("dns ip should be %1, got %2").arg(ip, dnsIp.toString()); + QVERIFY2(dnsIp == ip, msg.toLocal8Bit().constData()); m_coreController->m_allowedDnsUiController->importDns(getPath(), true); m_coreController->m_allowedDnsUiController->updateModel(); diff --git a/client/tests/testUiAppSTModelAndController.cpp b/client/tests/testUiAppSTModelAndController.cpp index b36926274..f9966a28d 100644 --- a/client/tests/testUiAppSTModelAndController.cpp +++ b/client/tests/testUiAppSTModelAndController.cpp @@ -83,7 +83,8 @@ private slots: QVERIFY2(appSTModelIndex.isValid(), "Site model index should be valid"); auto appPath = m_coreController->m_appSplitTunnelingModel->data(appSTModelIndex, AppSplitTunnelingModel::AppPathRole); - QVERIFY2(app.contains(appPath.toString()) == true, QString("app path should be %1, got %2").arg(app, appPath)); + QString msg = QString("app path should be %1, got %2").arg(app, appPath.toString()); + QVERIFY2(app.contains(appPath.toString()) == true, msg.toLocal8Bit().constData()); auto pkgAppName = m_coreController->m_appSplitTunnelingModel->data(appSTModelIndex, AppSplitTunnelingModel::PackageAppNameRole); QVERIFY2(pkgAppName == true, "app name should be set");