Commit ac944f02 authored by Andy Wilkinson's avatar Andy Wilkinson

Use a random HTTP port when running SampleLiquibaseApplicationTests

parent 56977c03
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment