Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfvanek committed Dec 21, 2024
1 parent bbd0668 commit 56aa9b8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ internal class PostgresCustomDataSourceDemoApplicationKtRunTest {

@Test
fun applicationShouldRun(output: CapturedOutput) {
assertThatCode { main(arrayOf("--spring.profiles.active=test,run")) }
assertThatCode { main(arrayOf("--spring.profiles.active=test")) }
.doesNotThrowAnyException()
assertThat(output.all)
.contains("Reading from custom_ds_schema.databasechangelog")
.contains("Starting PostgresCustomDataSourceDemoApplicationKt using Java")
.contains("Container is started (JDBC URL: jdbc:postgresql://localhost:")
.contains("Started PostgresCustomDataSourceDemoApplicationKt in")
}
}

0 comments on commit 56aa9b8

Please sign in to comment.