]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests/rbd-mirror: fixes BootstrapReplayer test 59531/head
authorN Balachandran <nibalach@redhat.com>
Fri, 30 Aug 2024 12:14:27 +0000 (17:44 +0530)
committerN Balachandran <nibalach@redhat.com>
Fri, 30 Aug 2024 12:14:27 +0000 (17:44 +0530)
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 <nibalach@redhat.com>
src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc

index d8d7ed2da5615c174682682adbfe4a5dd4a473fd..0411370013355fe69b534f9aca008c4421194e78 100644 (file)
@@ -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,