Skip to content

1.1.0

Choose a tag to compare

@Fadelis Fadelis released this 22 Apr 19:37
· 3 commits to master since this release

Fix: Port binding race condition in parallel test execution

Tests with @AutoConfigureGrpcMock could fail with "Address already in use" when running in parallel due to a TOCTOU race between discovering a free port and binding to it.

The Spring Boot integration now uses a ContextCustomizer (inspired by wiremock-spring-boot) that builds, starts, and publishes the gRPC Mock server in a single step — the OS assigns the port atomically at bind time, eliminating the race.

Breaking changes

  • GrpcMockConfiguration, GrpcMockProperties, and GrpcMockApplicationListener have been removed. Use the GrpcMock bean directly instead.
  • @PropertyMapping removed from @AutoConfigureGrpcMock. Environment properties (grpcmock.server.port, grpcmock.server.name) are still published and @Value injection continues to work.