ykrautsou

Results 2 comments of ykrautsou

@abdheshkumar , I faced the same problem and found 2 solutions: 1. Use `GenericContainer` as mentioned before: `GenericContainer mongoDBContainer = new GenericContainer(MONGODB_IMAGE) .withExposedPorts(MONGODB_PORT) .withEnv("MONGO_INITDB_ROOT_USERNAME", "testuser") .withEnv ("MONGO_INITDB_ROOT_PASSWORD", "testpassword") .withEnv("MONGO_INITDB_DATABASE", "testdb")`...

@abdheshkumar , I catched 'ReplicaSetInitializationException' too and for now do not completly understand the root cause. I included retry mechanism during mongo test container start: ``` new RetryTemplateBuilder() .maxAttempts(3) .retryOn(ContainerLaunchException.class)...