You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2015/02/03 01:27:43 UTC

mesos git commit: Fixed DiskUsageCollectorTest.SymbolicLink so that it works on both ext3 and ext4.

Repository: mesos
Updated Branches:
  refs/heads/master ca9ed749b -> 90c3fde2f


Fixed DiskUsageCollectorTest.SymbolicLink so that it works on both ext3 and ext4.

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


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

Branch: refs/heads/master
Commit: 90c3fde2ff31552880ec23869104bc0b951765d0
Parents: ca9ed74
Author: Jie Yu <yu...@gmail.com>
Authored: Fri Jan 30 13:51:56 2015 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Feb 2 16:27:28 2015 -0800

----------------------------------------------------------------------
 src/tests/disk_quota_tests.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/90c3fde2/src/tests/disk_quota_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/disk_quota_tests.cpp b/src/tests/disk_quota_tests.cpp
index 83a9844..3239ed2 100644
--- a/src/tests/disk_quota_tests.cpp
+++ b/src/tests/disk_quota_tests.cpp
@@ -122,7 +122,7 @@ TEST_F(DiskUsageCollectorTest, Directory)
 TEST_F(DiskUsageCollectorTest, SymbolicLink)
 {
   string file = path::join(os::getcwd(), "file");
-  ASSERT_SOME(os::write(file, string(Kilobytes(8).bytes(), 'x')));
+  ASSERT_SOME(os::write(file, string(Kilobytes(64).bytes(), 'x')));
 
   // Create a symbolic link to the current directory.
   string link = path::join(os::getcwd(), "link");
@@ -134,11 +134,11 @@ TEST_F(DiskUsageCollectorTest, SymbolicLink)
   Future<Bytes> usage2 = collector.usage(link);
 
   AWAIT_READY(usage1);
-  EXPECT_GE(usage1.get(), Kilobytes(8));
-  EXPECT_LT(usage1.get(), Kilobytes(16));
+  EXPECT_GE(usage1.get(), Kilobytes(64));
+  EXPECT_LT(usage1.get(), Kilobytes(128));
 
   AWAIT_READY(usage2);
-  EXPECT_LT(usage2.get(), Kilobytes(8));
+  EXPECT_LT(usage2.get(), Kilobytes(64));
 }