1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 11:23:00 +08:00

Add test coverage of crash scenario

This commit is contained in:
Dean Herbert 2024-03-29 12:19:06 +08:00
parent 21201e616d
commit c51a2e169d
No known key found for this signature in database

View File

@ -74,6 +74,10 @@ namespace osu.Game.Tests.Visual.Menus
});
AddStep("enter code", () => loginOverlay.ChildrenOfType<OsuTextBox>().First().Text = "88800088");
assertAPIState(APIState.Online);
AddStep("set failing", () => { dummyAPI.SetState(APIState.Failing); });
AddStep("return to online", () => { dummyAPI.SetState(APIState.Online); });
AddStep("clear handler", () => dummyAPI.HandleRequest = null);
}