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 2014/04/24 03:09:11 UTC

git commit: Fixed a warning in ReservationAllocatorTest.ResourcesReturned.

Repository: mesos
Updated Branches:
  refs/heads/master abba9d11c -> d4b5a35fa


Fixed a warning in ReservationAllocatorTest.ResourcesReturned.

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


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

Branch: refs/heads/master
Commit: d4b5a35fa8a0bb6fa053081fa018683642bfa98e
Parents: abba9d1
Author: Jiang Yan Xu <ya...@jxu.me>
Authored: Wed Apr 23 18:08:56 2014 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Wed Apr 23 18:08:56 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/d4b5a35f/src/tests/allocator_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/allocator_tests.cpp b/src/tests/allocator_tests.cpp
index a097ca5..11ed908 100644
--- a/src/tests/allocator_tests.cpp
+++ b/src/tests/allocator_tests.cpp
@@ -520,6 +520,9 @@ TEST_F(ReservationAllocatorTest, ResourcesReturned)
 
   MockExecutor exec(DEFAULT_EXECUTOR_ID);
 
+  EXPECT_CALL(allocator, slaveAdded(_, _, _))
+    .Times(2);
+
   Future<Nothing> slaveAdded1 = FUTURE_DISPATCH(
       allocator.real, &HierarchicalDRFAllocatorProcess::slaveAdded);