mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
[#1818] Addressed review comments, minor cleanup.
Minor UT clean up: src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc src/lib/http/tests/mt_client_unittests.cc
This commit is contained in:
parent
35bc17e593
commit
beb731f6b1
@ -181,10 +181,6 @@ TEST_F(HAMtServiceTest, multiThreadingBasics) {
|
||||
// Enable DHCP multi-threading configuration in CfgMgr with 3 threads.
|
||||
setDHCPMultiThreadingConfig(true, 3);
|
||||
|
||||
/// @todo this is a hack... we have chicken-egg... CmdHttpListener won't
|
||||
/// start if MT is not enabled BUT that happens after config hook point
|
||||
MultiThreadingMgr::instance().setMode(true);
|
||||
|
||||
// Create the HA configuration
|
||||
HAConfigPtr ha_config(new HAConfig());
|
||||
HAConfigParser parser;
|
||||
|
@ -494,13 +494,7 @@ public:
|
||||
}
|
||||
|
||||
// Loop until the clients are done, an error occurs, or the time runs out.
|
||||
while (getRRCount() < expected_requests_) {
|
||||
// Always call restart() before we call run();
|
||||
io_service_.restart();
|
||||
|
||||
// Run until a client stops the service.
|
||||
io_service_.run();
|
||||
}
|
||||
runIOService(expected_requests_);
|
||||
|
||||
// Client should stop without issue.
|
||||
ASSERT_NO_THROW(client_->stop());
|
||||
|
Loading…
x
Reference in New Issue
Block a user