mirror of
https://github.com/osukey/osukey.git
synced 2025-05-08 23:27:38 +09:00
Fix potential test failures due to slow realm refresh in TestSceneScreenNavigation
As seen at https://github.com/ppy/osu/runs/5492345983?check_suite_focus=true.
This commit is contained in:
parent
f82687a2c6
commit
d5eca16b69
@ -133,7 +133,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
AddStep("confirm deletion", () => InputManager.Key(Key.Number1));
|
AddStep("confirm deletion", () => InputManager.Key(Key.Number1));
|
||||||
AddUntilStep("wait for dialog dismissed", () => Game.Dependencies.Get<DialogOverlay>().CurrentDialog == null);
|
AddUntilStep("wait for dialog dismissed", () => Game.Dependencies.Get<DialogOverlay>().CurrentDialog == null);
|
||||||
|
|
||||||
AddAssert("ensure score is pending deletion", () => Game.Realm.Run(r => r.Find<ScoreInfo>(score.ID)?.DeletePending == true));
|
AddUntilStep("ensure score is pending deletion", () => Game.Realm.Run(r => r.Find<ScoreInfo>(score.ID)?.DeletePending == true));
|
||||||
|
|
||||||
AddUntilStep("wait for score panel removal", () => scorePanel.Parent == null);
|
AddUntilStep("wait for score panel removal", () => scorePanel.Parent == null);
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
AddStep("confirm deletion", () => InputManager.Key(Key.Number1));
|
AddStep("confirm deletion", () => InputManager.Key(Key.Number1));
|
||||||
AddUntilStep("wait for dialog dismissed", () => Game.Dependencies.Get<DialogOverlay>().CurrentDialog == null);
|
AddUntilStep("wait for dialog dismissed", () => Game.Dependencies.Get<DialogOverlay>().CurrentDialog == null);
|
||||||
|
|
||||||
AddAssert("ensure score is pending deletion", () => Game.Realm.Run(r => r.Find<ScoreInfo>(score.ID)?.DeletePending == true));
|
AddUntilStep("ensure score is pending deletion", () => Game.Realm.Run(r => r.Find<ScoreInfo>(score.ID)?.DeletePending == true));
|
||||||
|
|
||||||
AddUntilStep("wait for score panel removal", () => scorePanel.Parent == null);
|
AddUntilStep("wait for score panel removal", () => scorePanel.Parent == null);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user