Skip to content

Commit

Permalink
[tests][lxd] Adapt to new network error logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
luis4a0 committed Jan 19, 2024
1 parent 8bb5947 commit 55e898b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/lxd/test_lxd_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,8 @@ TEST_F(LXDBackend, lxd_request_bad_request_throws_and_logs)
HasSubstr(": Error - Failure"));

EXPECT_CALL(*logger_scope.mock_logger,
log(Eq(mpl::Level::error), mpt::MockLogger::make_cstring_matcher(StrEq("lxd request")),
log(_,
mpt::MockLogger::make_cstring_matcher(StrEq("lxd request")),
mpt::MockLogger::make_cstring_matcher(error_matcher)));

MP_EXPECT_THROW_THAT(mp::lxd_request(mock_network_access_manager.get(), "GET", base_url), std::runtime_error,
Expand Down

0 comments on commit 55e898b

Please sign in to comment.