-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
type: bugA general bugA general bug
Milestone
Description
Test Setup 1
DockerPostgresDatabaseProviderprovider- No specified
max_connectionsproperty (therefore default300) - Single integration test executed 500 times using JUnit's
@RepeatedTestannotation @FlywayTestwith custom migration script at method level
Expected Behavior
- Test being executed 500 times
Actual Behavior
- Test is only executed 149 times (about half of the 300
max_connections)
Debugging
The Semaphore of the BlockingDataSourceWrapper decreases with -1 but only sometimes increases with +1. Nevertheless 3 connections seem to be blocked from the very start.
Test Setup 2
- Same setup as the first setup
- But having the
@FlywayTestannotation with custom migration script at class level
Expected Behavior
- Test being executed 500 times
Actual Behavior
- Test is properly executed 500 times
Debugging
The Semaphore of the BlockingDataSourceWrapper clearly increases and decreases with +/- 1 throughout all 500 tests. Also 3 connections seem to be blocked from the very start.
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug