mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
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:
@ -38,6 +38,8 @@ namespace osu.Game.Tournament.Tests.NonVisual
|
|||||||
TournamentStorage storage = (TournamentStorage)osu.Dependencies.Get<Storage>();
|
TournamentStorage storage = (TournamentStorage)osu.Dependencies.Get<Storage>();
|
||||||
FileBasedIPC ipc = (FileBasedIPC)osu.Dependencies.Get<MatchIPCInfo>();
|
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(ipc.SetIPCLocation(testCeDir));
|
||||||
Assert.True(storage.AllTournaments.Exists("stable.json"));
|
Assert.True(storage.AllTournaments.Exists("stable.json"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user