]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/librbd/image/test_mock_DetachChildRequest.cc
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / test / librbd / image / test_mock_DetachChildRequest.cc
index 37f38c63c9a81743b15979e3257421e9e0789e66..d5407daf83352410405b10ba4599ee1ac3477020 100644 (file)
@@ -118,6 +118,10 @@ public:
       .WillOnce(WithArg<1>(Invoke([this, r](Context* ctx) {
                              image_ctx->op_work_queue->queue(ctx, r);
                            })));
+    if (r == 0) {
+      EXPECT_CALL(mock_image_ctx, test_features(_))
+        .WillOnce(Return(false));
+    }
   }
 
   void expect_close(MockImageCtx &mock_image_ctx, int r) {