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/07 15:17:49 UTC
mesos git commit: Waited for scheduler disconnect in
MasterAPITest.Teardown.
Repository: mesos
Updated Branches:
refs/heads/master e95aa3f4f -> b475c4245
Waited for scheduler disconnect in MasterAPITest.Teardown.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b475c424
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b475c424
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b475c424
Branch: refs/heads/master
Commit: b475c4245541ff116c842d78bb6985f15778dcb9
Parents: e95aa3f
Author: Alexander Rukletsov <al...@apache.org>
Authored: Tue Nov 7 16:17:06 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Tue Nov 7 16:17:06 2017 +0100
----------------------------------------------------------------------
src/tests/api_tests.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/b475c424/src/tests/api_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/api_tests.cpp b/src/tests/api_tests.cpp
index b3efac9..ba3f1f8 100644
--- a/src/tests/api_tests.cpp
+++ b/src/tests/api_tests.cpp
@@ -3442,7 +3442,9 @@ TEST_P(MasterAPITest, Teardown)
Future<ShutdownFrameworkMessage> shutdownFrameworkMessage =
FUTURE_PROTOBUF(ShutdownFrameworkMessage(), _, _);
- EXPECT_CALL(*scheduler, disconnected(_));
+ Future<Nothing> disconnected;
+ EXPECT_CALL(*scheduler, disconnected(_))
+ .WillOnce(FutureSatisfy(&disconnected));
// Send the teardown call with the correct credential, it will teardown the
// framework.
@@ -3465,6 +3467,7 @@ TEST_P(MasterAPITest, Teardown)
}
AWAIT_READY(shutdownFrameworkMessage);
+ AWAIT_READY(disconnected);
// There should be one framework in the 'completed_frameworks' field of
// the response for the 'GET_FRAMEWORKS' call.