]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
neorados: Increase timeouts in watch/notify poll tests 63987/head
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 17 Jun 2025 17:37:22 +0000 (13:37 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 17 Jun 2025 18:50:00 +0000 (14:50 -0400)
Since we seem to be hitting timeouts on teuthology.

Fixes: https://tracker.ceph.com/issues/70916
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/neorados/watch_notify.cc

index e3853f2450cf92fca64be7aa55e5eae51e64af32..59da34a40ffa0851ac6d634de471275d0b5af31b 100644 (file)
@@ -175,7 +175,7 @@ CORO_TEST_F(NeoRadosWatchNotify, WatchNotifyTimeout, NeoRadosWatchNotifyTest) {
 CORO_TEST_F(NeoRadosWatchNotifyPoll, WatchNotify, NeoRadosTest) {
   static constexpr auto oid = "obj"sv;
   co_await create_obj(oid);
-  auto handle = co_await rados().watch(oid, pool(), asio::use_awaitable);
+  auto handle = co_await rados().watch(oid, pool(), asio::use_awaitable, 300s);
   EXPECT_TRUE(rados().check_watch(handle));
   std::vector<neorados::ObjWatcher> watchers;
   co_await execute(oid, ReadOp{}.list_watchers(&watchers));
@@ -183,7 +183,7 @@ CORO_TEST_F(NeoRadosWatchNotifyPoll, WatchNotify, NeoRadosTest) {
   auto notify = [](neorados::RADOS& r, neorados::IOContext ioc)
     -> asio::awaitable<void> {
     auto [reply_map, missed_set]
-      = co_await r.notify(oid, ioc, {}, {}, asio::use_awaitable);
+      = co_await r.notify(oid, ioc, {}, 300s, asio::use_awaitable);
 
     EXPECT_EQ(1u, reply_map.size());
     EXPECT_EQ(5u, reply_map.begin()->second.length());