Repository: mesos
Updated Branches:
  refs/heads/master 6e7a29124 -> b78749d29


Fixed SystemCpuUsage isolator test.

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


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

Branch: refs/heads/master
Commit: b78749d29811b8ac860e4a8994ca119485db3747
Parents: 6e7a291
Author: Vinod Kone <[email protected]>
Authored: Thu Mar 6 17:52:30 2014 -0800
Committer: Vinod Kone <[email protected]>
Committed: Thu Mar 6 18:07:54 2014 -0800

----------------------------------------------------------------------
 src/tests/isolator_tests.cpp | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b78749d2/src/tests/isolator_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/isolator_tests.cpp b/src/tests/isolator_tests.cpp
index 18d67c7..dde977e 100644
--- a/src/tests/isolator_tests.cpp
+++ b/src/tests/isolator_tests.cpp
@@ -188,9 +188,6 @@ TYPED_TEST(CpuIsolatorTest, UserCpuUsage)
 
   EXPECT_LE(0.125, statistics.cpus_user_time_secs());
 
-  // Shouldn't be any appreciable system time.
-  EXPECT_GT(0.075, statistics.cpus_system_time_secs());
-
   // Ensure all processes are killed.
   AWAIT_READY(launcher.get()->destroy(containerId));
 
@@ -282,9 +279,6 @@ TYPED_TEST(CpuIsolatorTest, SystemCpuUsage)
 
   EXPECT_LE(0.125, statistics.cpus_system_time_secs());
 
-  // Shouldn't be any appreciable user time.
-  EXPECT_GT(0.025, statistics.cpus_user_time_secs());
-
   // Ensure all processes are killed.
   AWAIT_READY(launcher.get()->destroy(containerId));
 

Reply via email to