diff --git a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt index c03cbc6d2..8b7771b83 100644 --- a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt +++ b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt @@ -19,7 +19,7 @@ package com.catenax.bpdm.bridge.dummy.util - +import com.catenax.bpdm.bridge.dummy.util.PostgreSQLContextInitializer.Companion.postgreSQLContainer import com.github.dockerjava.api.model.Ulimit import org.springframework.boot.test.util.TestPropertyValues import org.springframework.context.ApplicationContextInitializer @@ -54,8 +54,8 @@ class OpenSearchContextInitializer : ApplicationContextInitializer cmd.hostConfig!!.withUlimits(arrayOf(Ulimit("nofile", 65536L, 65536L), Ulimit("memlock", -1L, -1L))) } - .withNetwork(PostgreSQLContextInitializer.postgreSQLContainer.getNetwork()) - .dependsOn(listOf(PostgreSQLContextInitializer.postgreSQLContainer)) + .withNetwork(postgreSQLContainer.getNetwork()) + .dependsOn(listOf(postgreSQLContainer)) } override fun initialize(applicationContext: ConfigurableApplicationContext) {