From 6145268dd37edcfc7809913c92acc2335117bce7 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 28 Jan 2024 21:35:25 +0100 Subject: [PATCH] Adapt tests to recent changes in URL handling --- syncthingconnector/tests/connectiontests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthingconnector/tests/connectiontests.cpp b/syncthingconnector/tests/connectiontests.cpp index c7fe3cd..9c5bf2e 100644 --- a/syncthingconnector/tests/connectiontests.cpp +++ b/syncthingconnector/tests/connectiontests.cpp @@ -676,7 +676,7 @@ void ConnectionTests::testRequestingRescan() bool errorOccured = false; const auto errorHandler = [&errorOccured](const QString &message) { errorOccured |= message.startsWith(QStringLiteral("Unable to request rescan: Error transferring")) - && message.endsWith(QStringLiteral("/rest/db/scan?folder=non-existing-dir&sub=sub/path - server replied: Internal Server Error")); + && message.endsWith(QStringLiteral("/rest/db/scan?folder=non-existing-dir&sub=sub%2Fpath - server replied: Internal Server Error")); }; waitForSignals(bind(&SyncthingConnection::rescan, &m_connection, QStringLiteral("non-existing-dir"), QStringLiteral("sub/path")), 5000, connectionSignal(&SyncthingConnection::error, errorHandler, &errorOccured));