Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez committed Nov 14, 2023
1 parent 1f403d5 commit eebc73f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public void testInitScript() {
public void shouldStartWhenContainerIpIsUsedInWaitStrategy() {
try (final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(IMAGE_NAME_2_18)) {
ycqlContainer.start();
assertThat(performQuery(ycqlContainer, "SELECT release_version FROM system.local").wasApplied()).isTrue();
boolean isQueryExecuted = performQuery(ycqlContainer, "SELECT release_version FROM system.local")
.wasApplied();
assertThat(isQueryExecuted).isTrue();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ public void testWaitStrategy() throws SQLException {
assertThat(performQuery(ysqlContainer, "SELECT 1").getInt(1))
.as("A sample test query succeeds")
.isEqualTo(1);
assertThat(
performQuery(ysqlContainer, "SELECT EXISTS (SELECT FROM pg_tables WHERE tablename = 'YB_SAMPLE')")
.getBoolean(1)
boolean tableExists = performQuery(
ysqlContainer,
"SELECT EXISTS (SELECT FROM pg_tables WHERE tablename = 'YB_SAMPLE')"
)
.as("yb_sample table does not exists")
.isEqualTo(false);
.getBoolean(1);
assertThat(tableExists).as("yb_sample table does not exists").isFalse();
}
}
}

0 comments on commit eebc73f

Please sign in to comment.