Use a random HTTP port when running SampleLiquibaseApplicationTests

This commit is contained in:
Andy Wilkinson
2015-10-16 12:07:56 +01:00
parent 56977c037d
commit ac944f02cc

View File

@@ -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)) {