Parcourir la source

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

Marcin Siodelski il y a 9 ans
Parent
commit
d58342ceb0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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