Skip to content

Commit

Permalink
#102 | Fix build breaks due to test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Jul 24, 2024
1 parent 7c6cf5e commit 603c56c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void before() {
@Sql(scripts = {"/test-data-teardown.sql"}, executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD)
public void shouldGetAllTablesForAnOrganisation() {
SchemaMetadata schemaMetadata = schemaMetadataRepository.getNewSchemaMetadata();
assertThat(schemaMetadata.getTableMetadata().size(), is(15));
assertThat(schemaMetadata.getTableMetadata().size(), is(16));
}

@Test
Expand Down Expand Up @@ -83,7 +83,7 @@ public void shouldGetMediaTable() {
@Sql({"/test-data-teardown.sql", "/test-data.sql"})
@Sql(scripts = {"/test-data-teardown.sql"}, executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD)
public void shouldGetMediaAnalysisTable() {
SchemaMetadata schemaMetadata = schemaMetadataRepository.getExistingSchemaMetadata();
SchemaMetadata schemaMetadata = schemaMetadataRepository.getNewSchemaMetadata();
Optional<TableMetadata> mediaAnalysis = schemaMetadata.getTableMetadata().stream().filter(tableMetadata1 -> tableMetadata1.getName().equals("media_analysis")).findFirst();

assertThat(mediaAnalysis.isPresent(), is(true));
Expand Down

0 comments on commit 603c56c

Please sign in to comment.