]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4009] Fixed DController unit test suffering from the race condition.
authorMarcin Siodelski <marcin@isc.org>
Fri, 4 Sep 2015 16:32:35 +0000 (18:32 +0200)
committerMarcin Siodelski <marcin@isc.org>
Fri, 4 Sep 2015 16:32:35 +0000 (18:32 +0200)
src/bin/d2/tests/d_controller_unittests.cc

index e882bd4c5c17c16dd4607e2f2bdc9c4dad801cde..1048ed9feaddbd1ed397a05d63c3346917995dcc 100644 (file)
@@ -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