You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2018/05/04 13:03:02 UTC

[2/3] mesos git commit: Added missing test expectation.

Added missing test expectation.

On master failover the scheduler will get disconnected. Add a test
expectation for that. This silences a gmock warning.

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


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

Branch: refs/heads/master
Commit: e4de09c86c6ef936d2a7369b491483e835616717
Parents: bb8c9a2
Author: Benjamin Bannier <be...@mesosphere.io>
Authored: Fri May 4 13:38:08 2018 +0200
Committer: Benjamin Bannier <bb...@apache.org>
Committed: Fri May 4 13:38:08 2018 +0200

----------------------------------------------------------------------
 src/tests/operation_reconciliation_tests.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e4de09c8/src/tests/operation_reconciliation_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/operation_reconciliation_tests.cpp b/src/tests/operation_reconciliation_tests.cpp
index 76c1695..9717e84 100644
--- a/src/tests/operation_reconciliation_tests.cpp
+++ b/src/tests/operation_reconciliation_tests.cpp
@@ -752,6 +752,7 @@ TEST_P(OperationReconciliationTest, AgentPendingOperationAfterMasterFailover)
   AWAIT_READY(applyOperation);
 
   // Simulate master failover.
+  EXPECT_CALL(*scheduler, disconnected(_));
 
   detector->appoint(None());