You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/10/25 19:21:49 UTC

[3/4] mesos git commit: Tweaked test expectation.

Tweaked test expectation.

`WillOnce` is more accurate than `WillRepeatedly`.

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


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

Branch: refs/heads/1.1.x
Commit: c6516be5df87e3fc8bea67f4dc74bc6a4743147d
Parents: 0abd951
Author: Neil Conway <ne...@gmail.com>
Authored: Fri Oct 21 14:18:59 2016 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Tue Oct 25 12:19:33 2016 -0700

----------------------------------------------------------------------
 src/tests/master_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c6516be5/src/tests/master_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/master_tests.cpp b/src/tests/master_tests.cpp
index 88cc6af..62d24b0 100644
--- a/src/tests/master_tests.cpp
+++ b/src/tests/master_tests.cpp
@@ -2169,7 +2169,7 @@ TEST_F(MasterTest, RateLimitRecoveredSlaveRemoval)
 
   Future<Nothing> slaveLost;
   EXPECT_CALL(sched, slaveLost(&driver, _))
-    .WillRepeatedly(FutureSatisfy(&slaveLost));
+    .WillOnce(FutureSatisfy(&slaveLost));
 
   driver.start();