From d5b944140aab0d08d70a23188885f6c7eb3fd40e Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 24 Apr 2020 16:21:08 +0100 Subject: [PATCH] Attempt to stabilise CouchbaseAutoConfigurationIntegrationTests Starting the CouchbaseContainer fails intermittently when creation of the primary index for the bucket fails with a read timeout. The test doesn't require a primary index for the bucket so this commit disables it creation in the hope that it will help to stabilise the test. --- .../couchbase/CouchbaseAutoConfigurationIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfigurationIntegrationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfigurationIntegrationTests.java index ca18434678..9129f85e27 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfigurationIntegrationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfigurationIntegrationTests.java @@ -48,7 +48,7 @@ class CouchbaseAutoConfigurationIntegrationTests { @Container static final CouchbaseContainer couchbase = new CouchbaseContainer().withCredentials("spring", "password") .withStartupAttempts(5).withStartupTimeout(Duration.ofMinutes(10)) - .withBucket(new BucketDefinition(BUCKET_NAME)); + .withBucket(new BucketDefinition(BUCKET_NAME).withPrimaryIndex(false)); private final ApplicationContextRunner contextRunner = new ApplicationContextRunner() .withConfiguration(AutoConfigurations.of(CouchbaseAutoConfiguration.class))