Skip to content

Spring-Boot tests log MongoSocketReadException: Prematurely reached end of stream after tests finished #4378

@pas2al

Description

@pas2al

The tests are ok, but they stop with a log entry:

com.mongodb.MongoSocketReadException: Prematurely reached end of stream

I use Kotlin and the JUnit 5 support from testcontainers to set up the tests and @DynamicPropertySource from Spring Boot to configure the container. Is that a problem I should care about and if so, how do I avoid it? Is there a way to gracefully shut down the connection? I am not sure if this is really related to testcontainers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions