Author: jbellis
Date: Fri Dec 24 18:23:27 2010
New Revision: 1052545
URL: http://svn.apache.org/viewvc?rev=1052545&view=rev
Log:
make sure expiring column lives for duration of test
patch by tjake; reviewed by jbellis for CASSANDRA-1892
Modified:
cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
Modified:
cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
URL:
http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/tools/SSTableExportTest.java?rev=1052545&r1=1052544&r2=1052545&view=diff
==============================================================================
---
cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
(original)
+++
cassandra/branches/cassandra-0.7/test/unit/org/apache/cassandra/tools/SSTableExportTest.java
Fri Dec 24 18:23:27 2010
@@ -97,7 +97,7 @@ public class SSTableExportTest extends S
ColumnFamily cfamily = ColumnFamily.create("Keyspace1", "Standard1");
SSTableWriter writer = new SSTableWriter(tempSS.getPath(), 2);
- int nowInSec = (int)(System.currentTimeMillis() / 1000);
+ int nowInSec = (int)(System.currentTimeMillis() / 1000) + 42; //live
for 42 seconds
// Add rowA
cfamily.addColumn(new QueryPath("Standard1", null,
ByteBufferUtil.bytes("colA")), ByteBufferUtil.bytes("valA"), 1);
cfamily.addColumn(null, new
ExpiringColumn(ByteBufferUtil.bytes("colExp"), ByteBufferUtil.bytes("valExp"),
1, 42, nowInSec));