Use a random HTTP port when running SampleLiquibaseApplicationTests
This commit is contained in:
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…
Reference in New Issue