]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/neorados: Don't leak watch handle wip-neorados-watch-notify
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 26 Nov 2025 05:59:35 +0000 (00:59 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Dec 2025 18:08:33 +0000 (13:08 -0500)
Add missing unwatch call.

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

index c567a5b3e226d896af4007692b4bbafc9f2baf33..e9803a25581034cfe254178d47b16e632386f4e1 100644 (file)
@@ -290,6 +290,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) {