You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2017/11/08 13:12:12 UTC

mesos git commit: Fixed AgentAPITest.GetContainers test.

Repository: mesos
Updated Branches:
  refs/heads/master e5f111573 -> 439825f9e


Fixed AgentAPITest.GetContainers test.

If a TASK_FAILED update is delivered before the agent terminates,
`status()` is called on containerizer as part of task status update
handling. Hence this can trigger a call expectation.


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

Branch: refs/heads/master
Commit: 439825f9e1a8339f040d816c6424dd0aeb69e304
Parents: e5f1115
Author: Alexander Rukletsov <al...@apache.org>
Authored: Wed Nov 8 14:11:51 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Wed Nov 8 14:11:51 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/439825f9/src/tests/api_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/api_tests.cpp b/src/tests/api_tests.cpp
index d3e812a..4e2cbe1 100644
--- a/src/tests/api_tests.cpp
+++ b/src/tests/api_tests.cpp
@@ -4216,7 +4216,7 @@ TEST_P(AgentAPITest, GetContainers)
   ipAddr->set_ip_address("192.168.1.20");
 
   EXPECT_CALL(containerizer, status(_))
-    .WillOnce(Return(containerStatus));
+    .WillRepeatedly(Return(containerStatus));
 
   v1::agent::Call v1Call;
   v1Call.set_type(v1::agent::Call::GET_CONTAINERS);