Commit 99b3af92 authored by Andy Wilkinson's avatar Andy Wilkinson

Use a random server port in the Couchbase sample’s tests

parent df6c2041
......@@ -20,7 +20,7 @@ public class SampleCouchbaseApplicationTests {
public void testDefaultSettings() throws Exception {
try {
new SpringApplicationBuilder(SampleCouchbaseApplication.class)
.run();
.run("--server.port=0");
}
catch (RuntimeException 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