Skip to content

Commit 621e5ce

Browse files
committed
tests/rbd-mirror: fixes BootstrapReplayer test
When run with debug_rbd_mirror >= 10, is_linked() is also called as part of a log message. This causes the tests using expect_is_linked() to fail. Signed-off-by: N Balachandran <[email protected]>
1 parent 52deba6 commit 621e5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class TestMockImageReplayerBootstrapRequest : public TestMockFixture {
364364

365365
void expect_is_linked(MockStateBuilder& mock_state_builder, bool is_linked) {
366366
EXPECT_CALL(mock_state_builder, is_linked())
367-
.WillOnce(Return(is_linked));
367+
.WillRepeatedly(Return(is_linked));
368368
}
369369

370370
void expect_is_disconnected(MockStateBuilder& mock_state_builder,

0 commit comments

Comments
 (0)