Skip to content

Commit

Permalink
Merge pull request ceph#48246 from liangmingyuanneo/fix-throttle-test
Browse files Browse the repository at this point in the history
test/rgw: improve integrity of rgw throttle test

Reviewed-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley authored Oct 20, 2022
2 parents d8decaa + 847099c commit 421a510
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/rgw/test_rgw_throttle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -179,6 +180,7 @@ TEST_F(Aio_Throttle, YieldCostOverWindow)
ASSERT_EQ(1u, c.size());
EXPECT_EQ(-EDEADLK, c.front().result);
});
context.run();
}

TEST_F(Aio_Throttle, YieldingThrottleOverMax)
Expand Down

0 comments on commit 421a510

Please sign in to comment.