accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/2] git commit: ACCUMULO-1908 Make an odd du assertion a little more odd.
Date Wed, 20 Nov 2013 04:32:44 GMT
Updated Branches:
  refs/heads/1.5.1-SNAPSHOT 316a84b54 -> 054a89e4b


ACCUMULO-1908 Make an odd du assertion a little more odd.


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

Branch: refs/heads/1.5.1-SNAPSHOT
Commit: 2ad8a4f3eb2a3e3c8d00ebfba6a1218ed6ff824c
Parents: 316a84b
Author: Josh Elser <elserj@apache.org>
Authored: Tue Nov 19 23:19:58 2013 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Tue Nov 19 23:19:58 2013 -0500

----------------------------------------------------------------------
 test/src/test/java/org/apache/accumulo/test/ShellServerTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/2ad8a4f3/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java b/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
index 6d44350..45eec03 100644
--- a/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
+++ b/test/src/test/java/org/apache/accumulo/test/ShellServerTest.java
@@ -253,7 +253,8 @@ public class ShellServerTest {
     output.clear();
     shell.execCommand("du -h", false, false);
     String o = output.get();
-    assertTrue(o.matches(".*26[0-9]B\\s\\[t\\]\\n")); // for some reason, there's 1-2 bytes
of fluctuation
+    // for some reason, there's a bit of fluctuation
+    assertTrue("Output did not match regex: '" + o + "'", o.matches(".*2[6-7][0-9]B\\s\\[t\\]\\n"));

     exec("deletetable -f t");
   }
   


Mime
View raw message