]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: fix gmock warning in TestMockIoImageRequestWQ.AcquireLockError 22778/head
authorMykola Golub <mgolub@suse.com>
Fri, 29 Jun 2018 19:13:28 +0000 (22:13 +0300)
committerMykola Golub <mgolub@suse.com>
Fri, 29 Jun 2018 19:13:28 +0000 (22:13 +0300)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/test/librbd/io/test_mock_ImageRequestWQ.cc

index 97d3c6c568db77ec79c45f390070ad7c616a9052..f54046f830045d5cc350e6d66f64de2d3c64ad56 100644 (file)
@@ -259,12 +259,15 @@ TEST_F(TestMockIoImageRequestWQ, AcquireLockError) {
   MockExclusiveLock mock_exclusive_lock;
   mock_image_ctx.exclusive_lock = &mock_exclusive_lock;
 
+  auto mock_queued_image_request = new MockImageDispatchSpec();
+  expect_was_throttled(*mock_queued_image_request, false);
+  expect_set_throttled(*mock_queued_image_request);
+
   InSequence seq;
   MockImageRequestWQ mock_image_request_wq(&mock_image_ctx, "io", 60, nullptr);
   expect_signal(mock_image_request_wq);
   mock_image_request_wq.set_require_lock(DIRECTION_WRITE, true);
 
-  auto mock_queued_image_request = new MockImageDispatchSpec();
   expect_is_write_op(*mock_queued_image_request, true);
   expect_queue(mock_image_request_wq);
   auto *aio_comp = new librbd::io::AioCompletion();