diff options
author | Marcin Siodelski <marcin@isc.org> | 2024-04-26 13:27:45 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2024-04-26 13:27:45 +0200 |
commit | 55ae7867ec3b946cc9e7aa39ada51c0afed373e1 (patch) | |
tree | 9a02c9e8c1884d7dea8630a2fe938c0e2e741612 | |
parent | [#1914] Fixed unstable HA tests (diff) | |
download | kea-55ae7867ec3b946cc9e7aa39ada51c0afed373e1.tar.xz kea-55ae7867ec3b946cc9e7aa39ada51c0afed373e1.zip |
[#1914] Use IOService::stopAndPoll
-rw-r--r-- | src/hooks/dhcp/high_availability/tests/ha_test.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hooks/dhcp/high_availability/tests/ha_test.cc b/src/hooks/dhcp/high_availability/tests/ha_test.cc index cf762f0722..bf07480c65 100644 --- a/src/hooks/dhcp/high_availability/tests/ha_test.cc +++ b/src/hooks/dhcp/high_availability/tests/ha_test.cc @@ -100,11 +100,7 @@ HATest::runIOService(long ms, std::function<bool()> stop_condition) { timer_->cancel(); - try { - // Run any outstanding handlers and protect against uncaught exceptions. - io_service_->poll(); - } catch (...) { - } + io_service_->stopAndPoll(); } boost::shared_ptr<std::thread> |