From: Marcin Siodelski Date: Fri, 4 Sep 2015 16:32:35 +0000 (+0200) Subject: [4009] Fixed DController unit test suffering from the race condition. X-Git-Tag: trac4060_base~5^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d58342ceb099926aad6ff82c2ddce8688d5ea09a;p=thirdparty%2Fkea.git [4009] Fixed DController unit test suffering from the race condition. --- diff --git a/src/bin/d2/tests/d_controller_unittests.cc b/src/bin/d2/tests/d_controller_unittests.cc index e882bd4c5c..1048ed9fea 100644 --- a/src/bin/d2/tests/d_controller_unittests.cc +++ b/src/bin/d2/tests/d_controller_unittests.cc @@ -242,9 +242,9 @@ TEST_F(DStubControllerTest, launchRuntimeError) { isc::asiolink::IntervalTimer timer(*getIOService()); timer.setup(genFatalErrorCallback, 2000); - // Write the valid, empty, config and then run launch() for 1000 ms + // Write the valid, empty, config and then run launch() for 5000 ms time_duration elapsed_time; - EXPECT_THROW(runWithConfig("{}", 2000, elapsed_time), ProcessRunError); + EXPECT_THROW(runWithConfig("{}", 5000, elapsed_time), ProcessRunError); // Verify that duration of the run invocation is the same as the // timer duration. This demonstrates that the shutdown was driven