From 8bb5947f1c89f616e5c46867a30036b0776f8d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Pe=C3=B1aranda?= Date: Fri, 19 Jan 2024 12:46:11 -0300 Subject: [PATCH] [tests][daemon] Adapt to new warning output. --- tests/test_daemon_start.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_daemon_start.cpp b/tests/test_daemon_start.cpp index 0ef9ef85543..05fbef39d1b 100644 --- a/tests/test_daemon_start.cpp +++ b/tests/test_daemon_start.cpp @@ -288,11 +288,12 @@ TEST_F(TestDaemonStart, startShowsBridgingErrors) StrictMock> server; + std::string log{"Cannot bridge eth47 for instance real-zebraphant\n"}; + EXPECT_CALL(server, Write(Property(&mp::StartReply::log_line, HasSubstr(log)), _)).Times(1); + auto status = call_daemon_slot(daemon, &mp::Daemon::start, request, std::move(server)); - EXPECT_THAT(status.error_message(), - StrEq("The following errors occurred:\nCannot bridge eth47 for instance real-zebraphant")); - EXPECT_FALSE(status.ok()); + EXPECT_TRUE(status.ok()); } TEST_F(TestDaemonStart, unknownStateDoesNotStart)