]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: updated mock expectation for librados remove op
authorJason Dillaman <dillaman@redhat.com>
Sun, 6 Mar 2016 18:08:17 +0000 (13:08 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sun, 13 Mar 2016 03:40:15 +0000 (22:40 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/object_map/test_mock_SnapshotRemoveRequest.cc

index e7b438d1b78dd18cd0499515407a91cf6ed62919..c00a3e69f132f3269f130ee94a2bcb68733edcbe 100644 (file)
@@ -54,10 +54,10 @@ public:
   void expect_remove_map(librbd::ImageCtx *ictx, uint64_t snap_id, int r) {
     std::string snap_oid(ObjectMap::object_map_name(ictx->id, snap_id));
     if (r < 0) {
-      EXPECT_CALL(get_mock_io_ctx(ictx->md_ctx), remove(snap_oid))
+      EXPECT_CALL(get_mock_io_ctx(ictx->md_ctx), remove(snap_oid, _))
                     .WillOnce(Return(r));
     } else {
-      EXPECT_CALL(get_mock_io_ctx(ictx->md_ctx), remove(snap_oid))
+      EXPECT_CALL(get_mock_io_ctx(ictx->md_ctx), remove(snap_oid, _))
                     .WillOnce(DoDefault());
     }
   }