You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sl...@apache.org on 2013/08/27 10:50:36 UTC

git commit: Fix QueryPagerTest

Updated Branches:
  refs/heads/cassandra-2.0.0 f5c9b4a8b -> c2847864c


Fix QueryPagerTest


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

Branch: refs/heads/cassandra-2.0.0
Commit: c2847864c6ec05320f18ba380104742b41ca4023
Parents: f5c9b4a
Author: Sylvain Lebresne <sy...@datastax.com>
Authored: Tue Aug 27 10:50:07 2013 +0200
Committer: Sylvain Lebresne <sy...@datastax.com>
Committed: Tue Aug 27 10:50:24 2013 +0200

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/service/QueryPagerTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c2847864/test/unit/org/apache/cassandra/service/QueryPagerTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/service/QueryPagerTest.java b/test/unit/org/apache/cassandra/service/QueryPagerTest.java
index cf1a083..48893d4 100644
--- a/test/unit/org/apache/cassandra/service/QueryPagerTest.java
+++ b/test/unit/org/apache/cassandra/service/QueryPagerTest.java
@@ -119,7 +119,8 @@ public class QueryPagerTest extends SchemaLoader
     private static ReadCommand sliceQuery(String key, String start, String end, int count)
     {
         SliceQueryFilter filter = new SliceQueryFilter(bytes(start), bytes(end), false, count);
-        return new SliceFromReadCommand(KS, bytes(key), CF, System.currentTimeMillis(), filter);
+        // Note: for MultiQueryTest, we need the same timestamp/expireBefore for all queries, so we just use 0 as it doesn't matter here.
+        return new SliceFromReadCommand(KS, bytes(key), CF, 0, filter);
     }
 
     private static RangeSliceCommand rangeNamesQuery(AbstractBounds<RowPosition> range, int count, String... names)