mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 09:09:01 +00:00
Use a random server port in the Couchbase sample’s tests
This commit is contained in:
+1
-1
@@ -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