diff --git a/spring-boot-samples/spring-boot-sample-liquibase/src/test/java/sample/liquibase/SampleLiquibaseApplicationTests.java b/spring-boot-samples/spring-boot-sample-liquibase/src/test/java/sample/liquibase/SampleLiquibaseApplicationTests.java index 9dc68d26c9..37c1772846 100644 --- a/spring-boot-samples/spring-boot-sample-liquibase/src/test/java/sample/liquibase/SampleLiquibaseApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-liquibase/src/test/java/sample/liquibase/SampleLiquibaseApplicationTests.java @@ -33,7 +33,7 @@ public class SampleLiquibaseApplicationTests { @Test public void testDefaultSettings() throws Exception { try { - SampleLiquibaseApplication.main(new String[0]); + SampleLiquibaseApplication.main(new String[] { "--server.port=0" }); } catch (IllegalStateException ex) { if (serverNotRunning(ex)) {