cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1090727 - /cassandra/trunk/test/unit/org/apache/cassandra/db/marshal/UUIDTypeTest.java
Date Sun, 10 Apr 2011 01:19:59 GMT
Author: jbellis
Date: Sun Apr 10 01:19:59 2011
New Revision: 1090727

URL: http://svn.apache.org/viewvc?rev=1090727&view=rev
Log:
fix UUIDTypeTest

Modified:
    cassandra/trunk/test/unit/org/apache/cassandra/db/marshal/UUIDTypeTest.java

Modified: cassandra/trunk/test/unit/org/apache/cassandra/db/marshal/UUIDTypeTest.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/test/unit/org/apache/cassandra/db/marshal/UUIDTypeTest.java?rev=1090727&r1=1090726&r2=1090727&view=diff
==============================================================================
--- cassandra/trunk/test/unit/org/apache/cassandra/db/marshal/UUIDTypeTest.java (original)
+++ cassandra/trunk/test/unit/org/apache/cassandra/db/marshal/UUIDTypeTest.java Sun Apr 10
01:19:59 2011
@@ -150,7 +150,7 @@ public class UUIDTypeTest
         assertEquals("Expected " + describeCompare(u1, u2, expC) + ", got "
                 + describeCompare(u1, u2, c), expC, c);
 
-        if (u1.version() == 1)
+        if (u1.version() == 1 && u2.version() == 1)
             assertEquals(c, sign(TimeUUIDType.instance.compare(bytebuffer(u1), bytebuffer(u2))));
 
         logJdkUUIDCompareToVariance(u1, u2, c);



Mime
View raw message