Adapt syncthingctl test to changed logging behavior

This commit is contained in:
Martchus 2019-08-08 22:36:47 +02:00
parent 072bef22c5
commit 5271a56397
1 changed files with 1 additions and 2 deletions

View File

@ -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);