accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject git commit: ACCUMULO-2979 Log a useful message for when the assertion fails
Date Wed, 09 Jul 2014 15:14:38 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 20ce2efa4 -> eb0cf2f4b


ACCUMULO-2979 Log a useful message for when the assertion fails


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

Branch: refs/heads/master
Commit: eb0cf2f4b70efcba0224893bce9f8680ae39f6e9
Parents: 20ce2ef
Author: Josh Elser <elserj@apache.org>
Authored: Wed Jul 9 11:14:05 2014 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Wed Jul 9 11:14:05 2014 -0400

----------------------------------------------------------------------
 .../apache/accumulo/test/functional/WatchTheWatchCountIT.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/eb0cf2f4/test/src/test/java/org/apache/accumulo/test/functional/WatchTheWatchCountIT.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/functional/WatchTheWatchCountIT.java
b/test/src/test/java/org/apache/accumulo/test/functional/WatchTheWatchCountIT.java
index 461e0f7..1291204 100644
--- a/test/src/test/java/org/apache/accumulo/test/functional/WatchTheWatchCountIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/functional/WatchTheWatchCountIT.java
@@ -51,8 +51,8 @@ public class WatchTheWatchCountIT extends ConfigurableMacIT {
       int n = socket.getInputStream().read(buffer);
       String response = new String(buffer, 0, n);
       long total = Long.parseLong(response.split(":")[1].trim());
-      assertTrue(total > 500);
-      assertTrue(total < 600);
+      assertTrue("Total watches was not greater than 500, but was " + total, total > 500);
+      assertTrue("Total watches was not less than 600, but was " + total, total < 600);
     } finally {
       socket.close();
     }


Mime
View raw message