diff --git a/src/test/mds/TestQuiesceAgent.cc b/src/test/mds/TestQuiesceAgent.cc index ae95115895459..a17ad0e45c95e 100644 --- a/src/test/mds/TestQuiesceAgent.cc +++ b/src/test/mds/TestQuiesceAgent.cc @@ -139,13 +139,19 @@ class QuiesceAgentTest : public testing::Test { } void TearDown() override { + for (auto it = quiesce_requests.cbegin(); it != quiesce_requests.cend(); ) { + if (it->second.second) { + it->second.second->complete(-ECANCELED); + } + it = quiesce_requests.erase(it); + } + if (agent) { agent->shutdown(); agent.reset(); } } - using R = QuiesceMap::Roots::value_type; using RootInitList = std::initializer_list;