mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 14:53:21 +08:00
Wait longer before confirming test players are cleaned up
This commit is contained in:
parent
5e5a74293e
commit
02313c6d6e
@ -54,7 +54,7 @@ namespace osu.Game.Tests.Visual
|
||||
AddStep(r.Name, () => p = loadPlayerFor(r));
|
||||
AddUntilStep(() => ContinueCondition(p));
|
||||
|
||||
AddAssert("no leaked beatmaps", () =>
|
||||
AddUntilStep(() =>
|
||||
{
|
||||
p = null;
|
||||
|
||||
@ -64,9 +64,9 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
workingWeakReferences.ForEachAlive(_ => count++);
|
||||
return count == 1;
|
||||
});
|
||||
}, "no leaked beatmaps");
|
||||
|
||||
AddAssert("no leaked players", () =>
|
||||
AddUntilStep(() =>
|
||||
{
|
||||
GC.Collect();
|
||||
GC.WaitForPendingFinalizers();
|
||||
@ -74,7 +74,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
playerWeakReferences.ForEachAlive(_ => count++);
|
||||
return count == 1;
|
||||
});
|
||||
}, "no leaked players");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user