ninja fix LegacySSTable test with new versioned files from 2.0

This commit is contained in:
Jake Luciani 2014-07-09 16:21:36 -04:00
parent 0b8fb5bb92
commit ae374107b7
12 changed files with 13 additions and 3 deletions

View File

@ -1 +0,0 @@
c22f034592ec31b1998083a34c1593538e8f1ea1 Keyspace1-Standard1-ic-0-Data.db

View File

@ -0,0 +1 @@
4a9f1896a599e4b3ff5d19600901de1a0b851bc1 Keyspace1-Standard1-jb-0-Data.db

View File

@ -1,7 +1,8 @@
Data.db
TOC.txt
Index.db
TOC.txt
Summary.db
Filter.db
Statistics.db
Data.db
CRC.db
Digest.sha1

View File

@ -143,9 +143,18 @@ public class LegacySSTableTest extends SchemaLoader
@Test
public void testVersions() throws Throwable
{
boolean notSkipped = false;
for (File version : LEGACY_SSTABLE_ROOT.listFiles())
{
if (Descriptor.Version.validate(version.getName()) && new Descriptor.Version(version.getName()).isCompatible())
{
notSkipped = true;
testVersion(version.getName());
}
}
assert notSkipped;
}
public void testVersion(String version) throws Throwable