1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Fix failing test

This commit is contained in:
Dean Herbert 2019-06-20 23:51:47 +09:00
parent 52ca5f9c00
commit 7b4180ce86

View File

@ -232,10 +232,10 @@ namespace osu.Game.Tests.Visual.UserInterface
private void checkSelected(Mod mod)
{
AddAssert($"check {mod.Name} is selected", () =>
AddUntilStep($"check {mod.Name} is selected", () =>
{
var button = modSelect.GetModButton(mod);
return modSelect.SelectedMods.Value.Single(m => m.Name == mod.Name) != null && button.SelectedMod.GetType() == mod.GetType() && button.Selected;
return modSelect.SelectedMods.Value.SingleOrDefault(m => m.Name == mod.Name) != null && button.SelectedMod.GetType() == mod.GetType() && button.Selected;
});
}