cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [1/3] git commit: don't let test pass by default
Date Thu, 26 Sep 2013 03:20:30 GMT
Updated Branches:
  refs/heads/trunk e2a3456e2 -> 5832cc839


don't let test pass by default


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

Branch: refs/heads/trunk
Commit: 00e871d0fa4f34e0024d82934d7ec9649ab62680
Parents: ff76003
Author: Dave Brosius <dbrosius@apache.org>
Authored: Wed Sep 25 23:15:52 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Wed Sep 25 23:15:52 2013 -0400

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/db/ReadMessageTest.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/00e871d0/test/unit/org/apache/cassandra/db/ReadMessageTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/ReadMessageTest.java b/test/unit/org/apache/cassandra/db/ReadMessageTest.java
index 4b56b96..173f303 100644
--- a/test/unit/org/apache/cassandra/db/ReadMessageTest.java
+++ b/test/unit/org/apache/cassandra/db/ReadMessageTest.java
@@ -150,11 +150,12 @@ public class ReadMessageTest extends SchemaLoader
 
     private boolean isEmptyCommitLog(BufferedInputStream is) throws IOException
     {
+        DataInputStream dis = new DataInputStream(is);
         byte[] lookahead = new byte[100];
 
-        is.mark(100);
-        is.read(lookahead);
-        is.reset();
+        dis.mark(100);
+        dis.readFully(lookahead);
+        dis.reset();
 
         for (int i = 0; i < 100; i++)
         {


Mime
View raw message