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/10/10 17:44:03 UTC
mesos git commit: Ensured allocations are processed before querying
metrics in a test.
Repository: mesos
Updated Branches:
refs/heads/master d0c0430c4 -> 4d7ac7a9a
Ensured allocations are processed before querying metrics in a test.
Review: https://reviews.apache.org/r/52626
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4d7ac7a9
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4d7ac7a9
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/4d7ac7a9
Branch: refs/heads/master
Commit: 4d7ac7a9ac8193f87bab5240f74944b0e813b829
Parents: d0c0430
Author: Alexander Rukletsov <al...@apache.org>
Authored: Fri Oct 7 11:42:22 2016 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Mon Oct 10 19:43:37 2016 +0200
----------------------------------------------------------------------
src/tests/hierarchical_allocator_tests.cpp | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/4d7ac7a9/src/tests/hierarchical_allocator_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/hierarchical_allocator_tests.cpp b/src/tests/hierarchical_allocator_tests.cpp
index 7957873..cae582e 100644
--- a/src/tests/hierarchical_allocator_tests.cpp
+++ b/src/tests/hierarchical_allocator_tests.cpp
@@ -1769,6 +1769,9 @@ TEST_F(HierarchicalAllocatorTest, NoDoubleAccounting)
allocator->addFramework(framework2.id(), framework2, framework2Allocation);
+ // Process all triggered allocation events.
+ Clock::settle();
+
// Total cluster resources (2 identical agents): cpus=2, mem=1024.
// ROLE1 share = 0.5
// framework1 share = 1