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

pull/5052/merge
Andy Wilkinson 9 years ago
parent df6c204193
commit 99b3af9216

@ -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)) {

Loading…
Cancel
Save