bug5728: added more ClientSession handling to make test failures with MongoDB replica sets less likely

This commit is contained in:
Axel Uhl
2022-08-12 00:43:00 +02:00
parent b63b2591f7
commit 82d1ee9c74
12 changed files with 79 additions and 38 deletions
@@ -23,8 +23,8 @@ public abstract class AbstractConnectivityParamsLoadAndStoreTest extends Abstrac
@Before
public void setUp() {
serviceFinderFactory = new MockConnectivityParamsServiceFinderFactory();
racingEventService = new RacingEventServiceImpl(/* clearPersistentCompetitorStore */ true, serviceFinderFactory,
/* restoreTrackedRaces */ false);
racingEventService = new RacingEventServiceImpl(/* clearPersistentCompetitorStore */ true, /* sensorFixStore */ null,
serviceFinderFactory, /* restoreTrackedRaces */ false);
serviceFinderFactory.setRacingEventService(racingEventService);
mongoObjectFactory = racingEventService.getMongoObjectFactory();
domainObjectFactory = racingEventService.getDomainObjectFactory();