Skip to content

@ServiceConnection not working as expected #42312

@corneil

Description

@corneil

In the process of creating a stream application to test it as a native container I discovered the @ServiceConnection is not working as expected.

I am sharing the repo. https://github.com/corneil/test-processor
It contains a Java and Kotlin version of the processor.

The java project contains com.example.testprocessor.testcontainers.TestProcessorServiceConnectionTests that fails with @ServiceConnection
There are versions using @EmbeddedKafka and traditional @Testcontainers with @DynamicPropertySource

I also discovered that some tests fail unless forkEvery is 1

Reproduce

./build-test.sh
./build-fail.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions