You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/05/13 20:30:30 UTC

git commit: Fixed the MonitorTest by setting the timestamp of the ResourceStatistics.

Updated Branches:
  refs/heads/master 7045f218f -> 8ecb6edde


Fixed the MonitorTest by setting the timestamp of the
ResourceStatistics.

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


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

Branch: refs/heads/master
Commit: 8ecb6edde66a2f56692bfd71ce4564794b05fb46
Parents: 7045f21
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Mon Apr 22 17:21:02 2013 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Mon May 13 11:29:47 2013 -0700

----------------------------------------------------------------------
 src/tests/monitor_tests.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/8ecb6edd/src/tests/monitor_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/monitor_tests.cpp b/src/tests/monitor_tests.cpp
index fd0dac7..9973f98 100644
--- a/src/tests/monitor_tests.cpp
+++ b/src/tests/monitor_tests.cpp
@@ -41,6 +41,7 @@ using namespace mesos;
 using namespace mesos::internal;
 using namespace mesos::internal::tests;
 
+using process::Clock;
 using process::Future;
 
 using process::http::BadRequest;
@@ -75,6 +76,7 @@ TEST(MonitorTest, WatchUnwatch)
   statistics.set_cpu_user_time(5);
   statistics.set_cpu_system_time(1);
   statistics.set_memory_rss(1024);
+  statistics.set_timestamp(Clock::now());
 
   TestingIsolator isolator;