From: N Balachandran Date: Fri, 30 Aug 2024 12:14:27 +0000 (+0530) Subject: tests/rbd-mirror: fixes BootstrapReplayer test X-Git-Tag: v20.0.0~1160^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=621e5ce0fc7e11ac432bc986abffde675adb31fd;p=ceph.git 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 --- diff --git a/src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc b/src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc index d8d7ed2da5615..0411370013355 100644 --- a/src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc +++ b/src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc @@ -364,7 +364,7 @@ public: void expect_is_linked(MockStateBuilder& mock_state_builder, bool is_linked) { EXPECT_CALL(mock_state_builder, is_linked()) - .WillOnce(Return(is_linked)); + .WillRepeatedly(Return(is_linked)); } void expect_is_disconnected(MockStateBuilder& mock_state_builder,