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 2016/04/12 17:10:28 UTC
[05/10] mesos git commit: Speeded up MasterTest.OfferTimeout.
Speeded up MasterTest.OfferTimeout.
Advance the clock to trigger a batch allocation instantly.
Review: https://reviews.apache.org/r/43517/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/424b1050
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/424b1050
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/424b1050
Branch: refs/heads/master
Commit: 424b105046ae2847e570d7d62c57c1de09a0bd7f
Parents: b7770c6
Author: haosdent huang <ha...@gmail.com>
Authored: Tue Apr 12 14:55:28 2016 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Tue Apr 12 14:58:26 2016 +0200
----------------------------------------------------------------------
src/tests/master_tests.cpp | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/424b1050/src/tests/master_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/master_tests.cpp b/src/tests/master_tests.cpp
index ff9fa0e..806a958 100644
--- a/src/tests/master_tests.cpp
+++ b/src/tests/master_tests.cpp
@@ -2598,6 +2598,11 @@ TEST_F(MasterTest, OfferTimeout)
AWAIT_READY(recoverResources);
+ // Advance the clock and trigger a batch allocation.
+ Clock::pause();
+ Clock::advance(masterFlags.allocation_interval);
+ Clock::resume();
+
// Expect that the resources are re-offered to the framework after
// the rescind.
AWAIT_READY(offers2);