mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09:00
Fix TestCase failing in an infinite loop
This commit is contained in:
parent
35ce6fd2bd
commit
f9d5eadd05
@ -66,13 +66,11 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
progressingNotifications.RemoveAll(n => n.State == ProgressNotificationState.Completed);
|
progressingNotifications.RemoveAll(n => n.State == ProgressNotificationState.Completed);
|
||||||
|
|
||||||
while (progressingNotifications.Count(n => n.State == ProgressNotificationState.Active) < 3)
|
if (progressingNotifications.Count(n => n.State == ProgressNotificationState.Active) < 3)
|
||||||
{
|
{
|
||||||
var p = progressingNotifications.FirstOrDefault(n => n.IsAlive && n.State == ProgressNotificationState.Queued);
|
var p = progressingNotifications.FirstOrDefault(n => n.IsAlive && n.State == ProgressNotificationState.Queued);
|
||||||
if (p == null)
|
if (p != null)
|
||||||
break;
|
p.State = ProgressNotificationState.Active;
|
||||||
|
|
||||||
p.State = ProgressNotificationState.Active;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var n in progressingNotifications.FindAll(n => n.State == ProgressNotificationState.Active))
|
foreach (var n in progressingNotifications.FindAll(n => n.State == ProgressNotificationState.Active))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user