]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/neorados: Don't leak watch handle 67729/head
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 26 Nov 2025 05:59:35 +0000 (00:59 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 16 Mar 2026 15:55:50 +0000 (11:55 -0400)
Add missing unwatch call.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/neorados/watch_notify.cc

index f7305c37ef1ab208b800fe8c7121fe8bf1a0a312..a65fe6b0e39394f1ac0c5631b5428f142b082c9d 100644 (file)
@@ -312,6 +312,7 @@ CORO_TEST_F(NeoRadosWatchNotifyPoll, WrongWatchType, NeoRadosTest) {
   co_await expect_error_code(
     rados().next_notification(handle, asio::use_awaitable),
     sys::errc::invalid_argument);
+  co_await rados().unwatch(handle, pool(), asio::use_awaitable);
 }
 
 CORO_TEST_F(NeoRadosWatchNotifyPoll, WatchNotifyCancel, NeoRadosTest) {