cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject [1/2] cassandra git commit: Fix testDateCompatibility on Windows
Date Thu, 20 Aug 2015 16:04:16 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 86bca3a0b -> 14dcc485e


Fix testDateCompatibility on Windows

Patch by pmotta; reviewed by jmckenzie for CASSANDRA-10034


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

Branch: refs/heads/trunk
Commit: f4918a057017fed47cdbbef688c2eef8c0e9e4b3
Parents: 1964a82
Author: Paulo Motta <pauloricardomg@gmail.com>
Authored: Thu Aug 20 12:03:28 2015 -0400
Committer: Joshua McKenzie <jmckenzie@apache.org>
Committed: Thu Aug 20 12:03:28 2015 -0400

----------------------------------------------------------------------
 .../org/apache/cassandra/cql3/validation/entities/TypeTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f4918a05/test/unit/org/apache/cassandra/cql3/validation/entities/TypeTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/cql3/validation/entities/TypeTest.java b/test/unit/org/apache/cassandra/cql3/validation/entities/TypeTest.java
index f3aa22b..920453c 100644
--- a/test/unit/org/apache/cassandra/cql3/validation/entities/TypeTest.java
+++ b/test/unit/org/apache/cassandra/cql3/validation/entities/TypeTest.java
@@ -41,11 +41,11 @@ public class TypeTest extends CQLTester
         createTable("CREATE TABLE %s (a int, b timestamp, c bigint, d varint, PRIMARY KEY
(a, b, c, d))");
 
         execute("INSERT INTO %s (a, b, c, d) VALUES (0, toUnixTimestamp(now()), toTimestamp(now()),
toTimestamp(now()))");
-        UntypedResultSet results = execute("SELECT * FROM %s WHERE a=0 AND b < toUnixTimestamp(now())");
+        UntypedResultSet results = execute("SELECT * FROM %s WHERE a=0 AND b <= toUnixTimestamp(now())");
         assertEquals(1, results.size());
 
         execute("INSERT INTO %s (a, b, c, d) VALUES (1, unixTimestampOf(now()), dateOf(now()),
dateOf(now()))");
-        results = execute("SELECT * FROM %s WHERE a=1 AND b < toUnixTimestamp(now())");
+        results = execute("SELECT * FROM %s WHERE a=1 AND b <= toUnixTimestamp(now())");
         assertEquals(1, results.size());
     }
 


Mime
View raw message