mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 17:59:03 +00:00
Use a random HTTP port when running SampleLiquibaseApplicationTests
This commit is contained in:
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user