From 38a2428a0e62c3c740b4906b1f88ffe776c7fbba Mon Sep 17 00:00:00 2001 From: Oguzhan Soykan Date: Tue, 23 Apr 2024 19:45:12 +0200 Subject: [PATCH] attemp couchbase multiple times while running the tests --- .../com/stove/spring/example/e2e/TestSystemConfig.kt | 9 ++++++++- .../testing/e2e/couchbase/CouchbaseTestSystemTests.kt | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/spring-example/src/test/kotlin/com/stove/spring/example/e2e/TestSystemConfig.kt b/examples/spring-example/src/test/kotlin/com/stove/spring/example/e2e/TestSystemConfig.kt index ed64e302..e36c4510 100644 --- a/examples/spring-example/src/test/kotlin/com/stove/spring/example/e2e/TestSystemConfig.kt +++ b/examples/spring-example/src/test/kotlin/com/stove/spring/example/e2e/TestSystemConfig.kt @@ -16,7 +16,14 @@ class TestSystemConfig : AbstractProjectConfig() { TestSystem(baseUrl = "http://localhost:8001") .with { httpClient() - couchbase { CouchbaseSystemOptions("Stove") } + couchbase { + CouchbaseSystemOptions( + "Stove", + containerOptions = CouchbaseContainerOptions(tag = "latest") { + withStartupAttempts(3) + } + ) + } kafka { KafkaSystemOptions( containerOptions = KafkaContainerOptions(tag = "latest") { diff --git a/lib/stove-testing-e2e-couchbase/src/test/kotlin/com/trendyol/stove/testing/e2e/couchbase/CouchbaseTestSystemTests.kt b/lib/stove-testing-e2e-couchbase/src/test/kotlin/com/trendyol/stove/testing/e2e/couchbase/CouchbaseTestSystemTests.kt index ed9d326c..8d320bb2 100644 --- a/lib/stove-testing-e2e-couchbase/src/test/kotlin/com/trendyol/stove/testing/e2e/couchbase/CouchbaseTestSystemTests.kt +++ b/lib/stove-testing-e2e-couchbase/src/test/kotlin/com/trendyol/stove/testing/e2e/couchbase/CouchbaseTestSystemTests.kt @@ -26,7 +26,9 @@ class Setup : AbstractProjectConfig() { defaultBucket = TEST_BUCKET, containerOptions = CouchbaseContainerOptions( tag = "latest" - ) + ) { + withStartupAttempts(3) + } ).migrations { register() }