mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 17:33:15 +08:00
Fix test cases potentially getting stuck after 4th run
This commit is contained in:
parent
43c6a8d2e5
commit
4b1e564df2
@ -163,10 +163,10 @@ namespace osu.Game.Tests.Visual
|
|||||||
public bool Ready;
|
public bool Ready;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(CancellationToken token)
|
||||||
{
|
{
|
||||||
// Never finish loading
|
// Never finish loading
|
||||||
while (!Ready)
|
while (!Ready && !token.IsCancellationRequested)
|
||||||
Thread.Sleep(1);
|
Thread.Sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user