1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 07:27:25 +08:00

Fix test cases potentially getting stuck after 4th run

This commit is contained in:
David Zhao 2019-03-27 14:31:07 +09:00
parent 43c6a8d2e5
commit 4b1e564df2

View File

@ -163,10 +163,10 @@ namespace osu.Game.Tests.Visual
public bool Ready;
[BackgroundDependencyLoader]
private void load()
private void load(CancellationToken token)
{
// Never finish loading
while (!Ready)
while (!Ready && !token.IsCancellationRequested)
Thread.Sleep(1);
}
}