From: Mykola Golub Date: Fri, 29 Jun 2018 19:13:28 +0000 (+0300) Subject: test/librbd: fix gmock warning in TestMockIoImageRequestWQ.AcquireLockError X-Git-Tag: v14.0.1~912^2^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=004ded3137145f0557cfea2ce06f92033a14034b;p=ceph.git test/librbd: fix gmock warning in TestMockIoImageRequestWQ.AcquireLockError Signed-off-by: Mykola Golub --- diff --git a/src/test/librbd/io/test_mock_ImageRequestWQ.cc b/src/test/librbd/io/test_mock_ImageRequestWQ.cc index 97d3c6c568db..f54046f83004 100644 --- a/src/test/librbd/io/test_mock_ImageRequestWQ.cc +++ b/src/test/librbd/io/test_mock_ImageRequestWQ.cc @@ -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();