Skip to content

Commit

Permalink
[tests][daemon] Adapt to new warning output.
Browse files Browse the repository at this point in the history
  • Loading branch information
luis4a0 committed Jan 25, 2024
1 parent c647dbf commit 43df7d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_daemon_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,12 @@ TEST_F(TestDaemonStart, startShowsBridgingErrors)

StrictMock<mpt::MockServerReaderWriter<mp::StartReply, mp::StartRequest>> server;

std::string log{"Cannot bridge eth47 for instance real-zebraphant. Please see the logs for more details.\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)
Expand Down

0 comments on commit 43df7d4

Please sign in to comment.