]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/amqp: skip idleness tests since it needs to sleep longer than 30s 52762/head
authorYuval Lifshitz <ylifshit@redhat.com>
Wed, 2 Aug 2023 10:19:00 +0000 (10:19 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Wed, 2 Aug 2023 10:27:40 +0000 (10:27 +0000)
current idle timeout is 30s, so, making the test sleep for 30s may not
be enough. setting sleep time to be longer, and skippign the test so it
won't take too long.

Fixes: https://tracker.ceph.com/issues/62264
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/test/rgw/test_rgw_amqp.cc

index c125d9e092d798750cb2602472376db7466612b9..c2297dc2235ef42baaae9572ae9eb93fa67ffd5b 100644 (file)
@@ -13,7 +13,7 @@ using namespace rgw;
 
 const std::chrono::milliseconds wait_time(10);
 const std::chrono::milliseconds long_wait_time = wait_time*50;
-const std::chrono::seconds idle_time(30);
+const std::chrono::seconds idle_time(35);
 
 
 class CctCleaner {
@@ -513,7 +513,7 @@ TEST_F(TestAMQP, RetryFailWrite)
 TEST_F(TestAMQP, IdleConnection)
 {
   // this test is skipped since it takes 30seconds
-  //GTEST_SKIP();
+  GTEST_SKIP();
   const auto connection_number = amqp::get_connection_count();
   amqp::connection_id_t conn_id;
   auto rc = amqp::connect(conn_id, "amqp://localhost", "ex1", false, false, boost::none);