Hello, i’m trying to use the kotest extension kafk...
# kotest
i
Hello, i’m trying to use the kotest extension kafka container like so:
Copy code
class ApplicationIntegrationTest : FunSpec() {
    init {
        val image: DockerImageName =
            if (System.getProperty("os.arch") == "aarch64") DockerImageName.parse("niciqy/cp-kafka-arm64:7.0.1")
                .asCompatibleSubstituteFor("confluentinc/cp-kafka")
            else DockerImageName.parse("confluentinc/cp-kafka:6.2.1")
        val kafka = install(ContainerExtension(KafkaContainer(image), mode = ContainerLifecycleMode.Project))

...
But i’m getting a stcakoverflow error:
Copy code
Test failed
java.lang.StackOverflowError
	at io.kotest.extensions.testcontainers.ContainerExtension.beforeSpec(ContainerExtension.kt:97)
It seems there’s a recursive call here with no escape… Any ideas?
e
Using latest versions of kotest and the extension?
i
5.5.5 kotest, 2.0.0 extension
l
Can confirm the problem.
Working on the solution
Releasing version 2.0.1.
Published. Awaiting Maven Central sync @sam maybe we should consider reverting release v2?
🙌 1
100 Views