You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2014/08/14 05:52:58 UTC

[4/4] git commit: Fixed the flaky SlaveRecoveryTest.ShutdownSlave.

Fixed the flaky SlaveRecoveryTest.ShutdownSlave.

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


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/93c39b89
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/93c39b89
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/93c39b89

Branch: refs/heads/master
Commit: 93c39b89e031acd227da23e1088f306b45caa9b2
Parents: 8efdb51
Author: Jie Yu <yu...@gmail.com>
Authored: Wed Aug 13 16:44:26 2014 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Aug 13 20:52:35 2014 -0700

----------------------------------------------------------------------
 src/tests/slave_recovery_tests.cpp | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/93c39b89/src/tests/slave_recovery_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/slave_recovery_tests.cpp b/src/tests/slave_recovery_tests.cpp
index b53353c..357edfc 100644
--- a/src/tests/slave_recovery_tests.cpp
+++ b/src/tests/slave_recovery_tests.cpp
@@ -1748,6 +1748,9 @@ TYPED_TEST(SlaveRecoveryTest, ShutdownSlave)
 
   Clock::resume();
 
+  EXPECT_CALL(sched, slaveLost(_, _))
+    .Times(AtMost(1));
+
   this->Stop(slave.get(), true); // Send a "shut down".
   delete containerizer1.get();