diff options
Diffstat (limited to 'src/bin/agent/tests')
-rw-r--r-- | src/bin/agent/tests/ca_command_mgr_unittests.cc | 2 | ||||
-rw-r--r-- | src/bin/agent/tests/ca_process_unittests.cc | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/agent/tests/ca_command_mgr_unittests.cc b/src/bin/agent/tests/ca_command_mgr_unittests.cc index 05ec8c7bc7..bd25e58cbf 100644 --- a/src/bin/agent/tests/ca_command_mgr_unittests.cc +++ b/src/bin/agent/tests/ca_command_mgr_unittests.cc @@ -248,6 +248,7 @@ public: // We have some cancelled operations for which we need to invoke the // handlers with the operation_aborted error code. + getIOService()->stop(); getIOService()->restart(); getIOService()->poll(); @@ -413,6 +414,7 @@ TEST_F(CtrlAgentCommandMgrTest, forwardListCommands) { // We have some cancelled operations for which we need to invoke the // handlers with the operation_aborted error code. + getIOService()->stop(); getIOService()->restart(); getIOService()->poll(); diff --git a/src/bin/agent/tests/ca_process_unittests.cc b/src/bin/agent/tests/ca_process_unittests.cc index e263e594f8..15b414e4b7 100644 --- a/src/bin/agent/tests/ca_process_unittests.cc +++ b/src/bin/agent/tests/ca_process_unittests.cc @@ -86,6 +86,7 @@ TEST_F(CtrlAgentProcessTest, shutdown) { elapsed.total_milliseconds() <= 400); timer.cancel(); + getIOService()->stop(); getIOService()->restart(); try { getIOService()->poll(); |