Use a random HTTP port when running SampleLiquibaseApplicationTests

pull/4219/head
Andy Wilkinson 9 years ago
parent 56977c037d
commit ac944f02cc

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

Loading…
Cancel
Save