wait for IPC to be populated in the test

Did not see this when locally running test until after a couple of subsequent runs.
This commit is contained in:
Shivam 2021-03-29 16:16:50 +02:00
parent 6c5a10a744
commit 2d344ae6ff

View File

@ -38,6 +38,8 @@ namespace osu.Game.Tournament.Tests.NonVisual
TournamentStorage storage = (TournamentStorage)osu.Dependencies.Get<Storage>();
FileBasedIPC ipc = (FileBasedIPC)osu.Dependencies.Get<MatchIPCInfo>();
waitForOrAssert(() => ipc != null, @"ipc could not be populated in a reasonable amount of time");
Assert.True(ipc.SetIPCLocation(testCeDir));
Assert.True(storage.AllTournaments.Exists("stable.json"));
}