mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +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;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
private void load(CancellationToken token)
|
||||
{
|
||||
// Never finish loading
|
||||
while (!Ready)
|
||||
while (!Ready && !token.IsCancellationRequested)
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user