You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2013/05/26 18:57:40 UTC
[15/28] git commit: Used Milliseconds rather than Duration::parse.
Used Milliseconds rather than Duration::parse.
Review: https://reviews.apache.org/r/11275
Project: http://git-wip-us.apache.org/repos/asf/incubator-mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mesos/commit/bb18d3bc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mesos/tree/bb18d3bc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mesos/diff/bb18d3bc
Branch: refs/heads/master
Commit: bb18d3bcc8208bcfd0deb422323631765236c779
Parents: 7995751
Author: Benjamin Hindman <be...@twitter.com>
Authored: Sat May 11 10:08:35 2013 -0700
Committer: Benjamin Hindman <be...@twitter.com>
Committed: Sun May 26 00:13:41 2013 -0700
----------------------------------------------------------------------
src/tests/allocator_tests.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/bb18d3bc/src/tests/allocator_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/allocator_tests.cpp b/src/tests/allocator_tests.cpp
index 5a0de33..7ee71de 100644
--- a/src/tests/allocator_tests.cpp
+++ b/src/tests/allocator_tests.cpp
@@ -685,7 +685,7 @@ TYPED_TEST(AllocatorTest, FrameworkExited)
EXPECT_CALL(this->allocator, initialize(_, _));
master::Flags masterFlags = this->CreateMasterFlags();
- masterFlags.allocation_interval = Duration::parse("50ms").get();
+ masterFlags.allocation_interval = Milliseconds(50);
Try<PID<Master> > master = this->StartMaster(&this->allocator, masterFlags);
ASSERT_SOME(master);
@@ -943,7 +943,7 @@ TYPED_TEST(AllocatorTest, SlaveAdded)
EXPECT_CALL(this->allocator, initialize(_, _));
master::Flags masterFlags = this->CreateMasterFlags();
- masterFlags.allocation_interval = Duration::parse("50ms").get();
+ masterFlags.allocation_interval = Milliseconds(50);
Try<PID<Master> > master = this->StartMaster(&this->allocator, masterFlags);
ASSERT_SOME(master);
@@ -1050,7 +1050,7 @@ TYPED_TEST(AllocatorTest, TaskFinished)
EXPECT_CALL(this->allocator, initialize(_, _));
master::Flags masterFlags = this->CreateMasterFlags();
- masterFlags.allocation_interval = Duration::parse("50ms").get();
+ masterFlags.allocation_interval = Milliseconds(50);
Try<PID<Master> > master = this->StartMaster(&this->allocator, masterFlags);
ASSERT_SOME(master);