Downgrade docker image used in couchbase 3.1 tests (#12925)

This commit is contained in:
Lauri Tulmin 2024-12-19 14:30:09 +02:00 committed by GitHub
parent 342400dd65
commit 02efad2ab9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 16 deletions

View File

@ -5,11 +5,8 @@
package io.opentelemetry.javaagent.instrumentation.couchbase.v3_1;
import static org.awaitility.Awaitility.await;
import com.couchbase.client.core.env.TimeoutConfig;
import com.couchbase.client.core.error.DocumentNotFoundException;
import com.couchbase.client.core.error.UnambiguousTimeoutException;
import com.couchbase.client.java.Bucket;
import com.couchbase.client.java.Cluster;
import com.couchbase.client.java.ClusterOptions;
@ -44,20 +41,8 @@ class CouchbaseClient31Test {
@BeforeAll
static void setup() {
// wait and retry in the hope that it will help against test flakiness
await()
.atMost(Duration.ofMinutes(5))
.ignoreException(UnambiguousTimeoutException.class)
.until(
() -> {
startCouchbase();
return true;
});
}
private static void startCouchbase() {
couchbase =
new CouchbaseContainer("couchbase/server:7.6.0")
new CouchbaseContainer("couchbase/server:6.5.1")
.withExposedPorts(8091)
.withEnabledServices(CouchbaseService.KV)
.withBucket(new BucketDefinition("test"))