mirror of https://github.com/ppy/osu
Fix failing tests
This commit is contained in:
parent
3ee698cfa0
commit
6d3ca4ec43
|
@ -69,6 +69,7 @@ public void TestCorrectSettingsApplied()
|
|||
{
|
||||
settings.NameField.Current.Value = expected_name;
|
||||
settings.DurationField.Current.Value = expectedDuration;
|
||||
Room.Playlist.Add(new PlaylistItem { Beatmap = { Value = CreateBeatmap(Ruleset.Value).BeatmapInfo } });
|
||||
|
||||
roomManager.CreateRequested = r =>
|
||||
{
|
||||
|
@ -89,6 +90,9 @@ public void TestCreationFailureDisplaysError()
|
|||
|
||||
AddStep("setup", () =>
|
||||
{
|
||||
Room.Name.Value = "Test Room";
|
||||
Room.Playlist.Add(new PlaylistItem { Beatmap = { Value = CreateBeatmap(Ruleset.Value).BeatmapInfo } });
|
||||
|
||||
fail = true;
|
||||
roomManager.CreateRequested = _ => !fail;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue