From 1e1b531896b20917905d1ebdd716271a1a011f4e Mon Sep 17 00:00:00 2001 From: = Date: Mon, 26 Sep 2022 14:52:31 +0800 Subject: [PATCH 1/2] test/rgw: fix one case not running in rgw throttle test Signed-off-by: Mingyuan Liang --- src/test/rgw/test_rgw_throttle.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/rgw/test_rgw_throttle.cc b/src/test/rgw/test_rgw_throttle.cc index 7ac82a30762df..da26fcc7bdf86 100644 --- a/src/test/rgw/test_rgw_throttle.cc +++ b/src/test/rgw/test_rgw_throttle.cc @@ -179,6 +179,7 @@ TEST_F(Aio_Throttle, YieldCostOverWindow) ASSERT_EQ(1u, c.size()); EXPECT_EQ(-EDEADLK, c.front().result); }); + context.run(); } TEST_F(Aio_Throttle, YieldingThrottleOverMax) From 847099cea5dfa76b77309d3ea548b039b26dc132 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 4 Oct 2022 12:23:00 +0800 Subject: [PATCH 2/2] test/rgw: cleanup the pool created after comleting test Signed-off-by: Mingyuan Liang --- src/test/rgw/test_rgw_throttle.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/rgw/test_rgw_throttle.cc b/src/test/rgw/test_rgw_throttle.cc index da26fcc7bdf86..9f6dc6ac23ebb 100644 --- a/src/test/rgw/test_rgw_throttle.cc +++ b/src/test/rgw/test_rgw_throttle.cc @@ -37,6 +37,7 @@ struct RadosEnv : public ::testing::Environment { ASSERT_EQ(0, r); } void TearDown() override { + ASSERT_EQ(0, rados->get_rados_handle()->pool_delete(poolname)); rados->shutdown(); rados.reset(); }