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/21 21:19:21 UTC

[3/3] 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/f9dfbdac
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f9dfbdac
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f9dfbdac

Branch: refs/heads/master
Commit: f9dfbdac74588883390fab8dfcce9528708ac83a
Parents: 61a0a10
Author: Neil Conway <ne...@gmail.com>
Authored: Fri Oct 21 14:18:59 2016 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Fri Oct 21 14:18:59 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/f9dfbdac/src/tests/master_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/master_tests.cpp b/src/tests/master_tests.cpp
index 2634b25..9963a0c 100644
--- a/src/tests/master_tests.cpp
+++ b/src/tests/master_tests.cpp
@@ -2369,7 +2369,7 @@ TEST_F(MasterTest, RateLimitRecoveredSlaveRemoval)
 
   Future<Nothing> slaveLost;
   EXPECT_CALL(sched, slaveLost(&driver, _))
-    .WillRepeatedly(FutureSatisfy(&slaveLost));
+    .WillOnce(FutureSatisfy(&slaveLost));
 
   driver.start();