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
|
@Test
|
||||||
public void testDefaultSettings() throws Exception {
|
public void testDefaultSettings() throws Exception {
|
||||||
try {
|
try {
|
||||||
SampleLiquibaseApplication.main(new String[0]);
|
SampleLiquibaseApplication.main(new String[] { "--server.port=0" });
|
||||||
}
|
}
|
||||||
catch (IllegalStateException ex) {
|
catch (IllegalStateException ex) {
|
||||||
if (serverNotRunning(ex)) {
|
if (serverNotRunning(ex)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue