Browse Source

[4009] Fixed DController unit test suffering from the race condition.

Marcin Siodelski 9 years ago
parent
commit
d58342ceb0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bin/d2/tests/d_controller_unittests.cc

+ 2 - 2
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