Skip to content

Commit d5b9441

Browse files
committed
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.
1 parent dc75ca3 commit d5b9441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CouchbaseAutoConfigurationIntegrationTests {
4848
@Container
4949
static final CouchbaseContainer couchbase = new CouchbaseContainer().withCredentials("spring", "password")
5050
.withStartupAttempts(5).withStartupTimeout(Duration.ofMinutes(10))
51-
.withBucket(new BucketDefinition(BUCKET_NAME));
51+
.withBucket(new BucketDefinition(BUCKET_NAME).withPrimaryIndex(false));
5252

5353
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
5454
.withConfiguration(AutoConfigurations.of(CouchbaseAutoConfiguration.class))

0 commit comments

Comments
 (0)