Use a random server port in the Couchbase sample’s tests
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user