Skip to content

Commit

Permalink
Fixes cassandra test drift
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cole committed Dec 31, 2018
1 parent 55aecc9 commit cf61fdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,15 @@ abstract class ITEnsureSchema {
}

@Test public void installsTablesWhenMissing() {
session()
.execute(
"CREATE KEYSPACE "
+ keyspace()
+ " WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};");
session().execute("CREATE KEYSPACE " + keyspace()
+ " WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};");

Schema.ensureExists(keyspace(), session());

KeyspaceMetadata metadata = session().getCluster().getMetadata().getKeyspace(keyspace());
assertThat(metadata).isNotNull();
assertThat(Schema.hasUpgrade1_defaultTtl(metadata)).isTrue();
assertThat(metadata.getTable("autocomplete_tags")).isNotNull();
}

@Test public void upgradesOldSchema() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ abstract class ITEnsureSchema {
}

@Test public void installsIndexesWhenMissing() {
Schema.applyCqlFile(keyspace(), session(), "/zipkin2-schema.cql");
session().execute("CREATE KEYSPACE " + keyspace()
+ " WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};");

Schema.ensureExists(keyspace(), true, session());

Expand Down

0 comments on commit cf61fdc

Please sign in to comment.