From 5271a56397e1cb747df36d5409d9491ffe02e5ab Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 8 Aug 2019 22:36:47 +0200 Subject: [PATCH] Adapt syncthingctl test to changed logging behavior --- cli/tests/application.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/tests/application.cpp b/cli/tests/application.cpp index 1be59da..4bf6d20 100644 --- a/cli/tests/application.cpp +++ b/cli/tests/application.cpp @@ -152,8 +152,7 @@ void ApplicationTests::test() const char *const logArgs[] = { "syncthingctl", "log", "--api-key", apiKey.data(), "--url", url.data(), nullptr }; TESTUTILS_ASSERT_EXEC(logArgs); cout << stdout; - CPPUNIT_ASSERT(stdout.find("syncthing v") != string::npos); - CPPUNIT_ASSERT(stdout.find("My ID") != string::npos); + CPPUNIT_ASSERT(stdout.find("My ID") != string::npos || stdout.find("My name") != string::npos); CPPUNIT_ASSERT(stdout.find("Startup complete") != string::npos); CPPUNIT_ASSERT(stdout.find("Access the GUI via the following URL") != string::npos);