Skip to content

Commit 5b43246

Browse files
author
Andrzej Religa
committed
Bug#35732000 wrong error message if existing socket-path is not readable
Post-push fix: fixing the new test failing on MacOS due to a different error message on that OS. Change-Id: I14f0dc5115b365a3d85fe27fc3c27e6b442cf8dc
1 parent d20ce48 commit 5b43246

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

router/tests/component/test_routing.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,8 +1148,11 @@ TEST_F(RouterRoutingTest, named_socket_fails_with_socket_is_not_readable) {
11481148
ASSERT_NO_THROW(router.wait_for_exit());
11491149

11501150
EXPECT_THAT(router.get_logfile_content(),
1151-
::testing::HasSubstr(
1152-
"is bound by another process failed: Permission denied"));
1151+
::testing::AnyOf(
1152+
::testing::HasSubstr(
1153+
"is bound by another process failed: Permission denied"),
1154+
::testing::HasSubstr("is bound by another process failed: "
1155+
"Socket operation on non-socket")));
11531156

11541157
// check if the file still exists and hasn't been deleted
11551158
EXPECT_EQ(access(socket_file.c_str(), F_OK), 0);

0 commit comments

Comments
 (0)