This commit is contained in:
Benedict Elliott Smith 2015-08-21 10:50:36 +01:00
parent a6d6540446
commit 941a5dd8a1
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class TrackerTest
{
ColumnFamilyStore cfs = MockSchema.newCFS();
Tracker tracker = new Tracker(cfs, false);
List<SSTableReader> readers = ImmutableList.of(MockSchema.sstable(0, cfs), MockSchema.sstable(1, cfs), MockSchema.sstable(2, cfs));
List<SSTableReader> readers = ImmutableList.of(MockSchema.sstable(0, true, cfs), MockSchema.sstable(1, cfs), MockSchema.sstable(2, cfs));
tracker.addInitialSSTables(copyOf(readers));
Assert.assertNull(tracker.tryModify(ImmutableList.of(MockSchema.sstable(0, cfs)), OperationType.COMPACTION));
try (LifecycleTransaction txn = tracker.tryModify(readers.get(0), OperationType.COMPACTION);)
@ -97,6 +97,7 @@ public class TrackerTest
Assert.assertNotNull(txn);
Assert.assertEquals(0, txn.originals().size());
}
readers.get(0).selfRef().release();
}
@Test