mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinodk...@apache.org
Subject svn commit: r1462230 - /incubator/mesos/trunk/src/tests/master_tests.cpp
Date Thu, 28 Mar 2013 17:38:29 GMT
Author: vinodkone
Date: Thu Mar 28 17:38:29 2013
New Revision: 1462230

URL: http://svn.apache.org/r1462230
Log:
Fixed MasterTest.ShutdownUnregisteredExecutor test.

Review: https://reviews.apache.org/r/10113

Modified:
    incubator/mesos/trunk/src/tests/master_tests.cpp

Modified: incubator/mesos/trunk/src/tests/master_tests.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/tests/master_tests.cpp?rev=1462230&r1=1462229&r2=1462230&view=diff
==============================================================================
--- incubator/mesos/trunk/src/tests/master_tests.cpp (original)
+++ incubator/mesos/trunk/src/tests/master_tests.cpp Thu Mar 28 17:38:29 2013
@@ -25,6 +25,7 @@
 #include <process/dispatch.hpp>
 #include <process/future.hpp>
 
+#include <stout/duration.hpp>
 #include <stout/error.hpp>
 #include <stout/os.hpp>
 
@@ -924,6 +925,9 @@ TEST_F(MasterTest, ShutdownUnregisteredE
   Clock::advance(slaveFlags.executor_registration_timeout.secs());
   Clock::settle();
 
+  // Wait for the executor to terminate.
+  usleep((useconds_t) Milliseconds(10).us());
+
   // Ensure that the reaper reaps the executor.
   Clock::advance(1.0);
   Clock::settle();



Mime
View raw message