mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
Merge pull request #22246 from frenzibyte/mark-tests-flaky
Mark remaining frequently-failing intermittent tests with `FlakyTest` attribute
This commit is contained in:
commit
f74bc4ff7c
@ -34,6 +34,24 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
public void TestSingleItemExpiredAfterGameplay()
|
||||||
|
{
|
||||||
|
RunGameplay();
|
||||||
|
|
||||||
|
AddUntilStep("playlist has only one item", () => MultiplayerClient.ClientAPIRoom?.Playlist.Count == 1);
|
||||||
|
AddUntilStep("playlist item is expired", () => MultiplayerClient.ClientAPIRoom?.Playlist[0].Expired == true);
|
||||||
|
AddUntilStep("last item selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
[FlakyTest]
|
||||||
|
/*
|
||||||
|
* TearDown : System.TimeoutException : "wait for ongoing operation to complete" timed out
|
||||||
|
* --TearDown
|
||||||
|
* at osu.Framework.Testing.Drawables.Steps.UntilStepButton.<>c__DisplayClass11_0.<.ctor>b__0()
|
||||||
|
* at osu.Framework.Testing.Drawables.Steps.StepButton.PerformStep(Boolean userTriggered)
|
||||||
|
* at osu.Framework.Testing.TestScene.runNextStep(Action onCompletion, Action`1 onError, Func`2 stopCondition)
|
||||||
|
*/
|
||||||
public void TestItemAddedToTheEndOfQueue()
|
public void TestItemAddedToTheEndOfQueue()
|
||||||
{
|
{
|
||||||
addItem(() => OtherBeatmap);
|
addItem(() => OtherBeatmap);
|
||||||
@ -46,16 +64,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestSingleItemExpiredAfterGameplay()
|
[FlakyTest] // See above
|
||||||
{
|
|
||||||
RunGameplay();
|
|
||||||
|
|
||||||
AddUntilStep("playlist has only one item", () => MultiplayerClient.ClientAPIRoom?.Playlist.Count == 1);
|
|
||||||
AddUntilStep("playlist item is expired", () => MultiplayerClient.ClientAPIRoom?.Playlist[0].Expired == true);
|
|
||||||
AddUntilStep("last item selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestNextItemSelectedAfterGameplayFinish()
|
public void TestNextItemSelectedAfterGameplayFinish()
|
||||||
{
|
{
|
||||||
addItem(() => OtherBeatmap);
|
addItem(() => OtherBeatmap);
|
||||||
@ -73,6 +82,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestItemsNotClearedWhenSwitchToHostOnlyMode()
|
public void TestItemsNotClearedWhenSwitchToHostOnlyMode()
|
||||||
{
|
{
|
||||||
addItem(() => OtherBeatmap);
|
addItem(() => OtherBeatmap);
|
||||||
@ -88,6 +98,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestCorrectItemSelectedAfterNewItemAdded()
|
public void TestCorrectItemSelectedAfterNewItemAdded()
|
||||||
{
|
{
|
||||||
addItem(() => OtherBeatmap);
|
addItem(() => OtherBeatmap);
|
||||||
@ -95,6 +106,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestCorrectRulesetSelectedAfterNewItemAdded()
|
public void TestCorrectRulesetSelectedAfterNewItemAdded()
|
||||||
{
|
{
|
||||||
addItem(() => OtherBeatmap, new CatchRuleset().RulesetInfo);
|
addItem(() => OtherBeatmap, new CatchRuleset().RulesetInfo);
|
||||||
@ -112,6 +124,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestCorrectModsSelectedAfterNewItemAdded()
|
public void TestCorrectModsSelectedAfterNewItemAdded()
|
||||||
{
|
{
|
||||||
addItem(() => OtherBeatmap, mods: new Mod[] { new OsuModDoubleTime() });
|
addItem(() => OtherBeatmap, mods: new Mod[] { new OsuModDoubleTime() });
|
||||||
|
@ -27,22 +27,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
AddUntilStep("first item selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
AddUntilStep("first item selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestItemStillSelectedAfterChangeToSameBeatmap()
|
|
||||||
{
|
|
||||||
selectNewItem(() => InitialBeatmap);
|
|
||||||
|
|
||||||
AddUntilStep("playlist item still selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestItemStillSelectedAfterChangeToOtherBeatmap()
|
|
||||||
{
|
|
||||||
selectNewItem(() => OtherBeatmap);
|
|
||||||
|
|
||||||
AddUntilStep("playlist item still selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestNewItemCreatedAfterGameplayFinished()
|
public void TestNewItemCreatedAfterGameplayFinished()
|
||||||
{
|
{
|
||||||
@ -54,20 +38,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
AddUntilStep("second playlist item selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[1].ID);
|
AddUntilStep("second playlist item selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[1].ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestOnlyLastItemChangedAfterGameplayFinished()
|
|
||||||
{
|
|
||||||
RunGameplay();
|
|
||||||
|
|
||||||
IBeatmapInfo firstBeatmap = null;
|
|
||||||
AddStep("get first playlist item beatmap", () => firstBeatmap = MultiplayerClient.ServerAPIRoom?.Playlist[0].Beatmap);
|
|
||||||
|
|
||||||
selectNewItem(() => OtherBeatmap);
|
|
||||||
|
|
||||||
AddUntilStep("first playlist item hasn't changed", () => MultiplayerClient.ServerAPIRoom?.Playlist[0].Beatmap == firstBeatmap);
|
|
||||||
AddUntilStep("second playlist item changed", () => MultiplayerClient.ClientAPIRoom?.Playlist[1].Beatmap != firstBeatmap);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestSettingsUpdatedWhenChangingQueueMode()
|
public void TestSettingsUpdatedWhenChangingQueueMode()
|
||||||
{
|
{
|
||||||
@ -80,6 +50,47 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest]
|
||||||
|
/*
|
||||||
|
* TearDown : System.TimeoutException : "wait for ongoing operation to complete" timed out
|
||||||
|
* --TearDown
|
||||||
|
* at osu.Framework.Testing.Drawables.Steps.UntilStepButton.<>c__DisplayClass11_0.<.ctor>b__0()
|
||||||
|
* at osu.Framework.Testing.Drawables.Steps.StepButton.PerformStep(Boolean userTriggered)
|
||||||
|
* at osu.Framework.Testing.TestScene.runNextStep(Action onCompletion, Action`1 onError, Func`2 stopCondition)
|
||||||
|
*/
|
||||||
|
public void TestItemStillSelectedAfterChangeToSameBeatmap()
|
||||||
|
{
|
||||||
|
selectNewItem(() => InitialBeatmap);
|
||||||
|
|
||||||
|
AddUntilStep("playlist item still selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
|
public void TestItemStillSelectedAfterChangeToOtherBeatmap()
|
||||||
|
{
|
||||||
|
selectNewItem(() => OtherBeatmap);
|
||||||
|
|
||||||
|
AddUntilStep("playlist item still selected", () => MultiplayerClient.ClientRoom?.Settings.PlaylistItemId == MultiplayerClient.ClientAPIRoom?.Playlist[0].ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
|
public void TestOnlyLastItemChangedAfterGameplayFinished()
|
||||||
|
{
|
||||||
|
RunGameplay();
|
||||||
|
|
||||||
|
IBeatmapInfo firstBeatmap = null;
|
||||||
|
AddStep("get first playlist item beatmap", () => firstBeatmap = MultiplayerClient.ServerAPIRoom?.Playlist[0].Beatmap);
|
||||||
|
|
||||||
|
selectNewItem(() => OtherBeatmap);
|
||||||
|
|
||||||
|
AddUntilStep("first playlist item hasn't changed", () => MultiplayerClient.ServerAPIRoom?.Playlist[0].Beatmap == firstBeatmap);
|
||||||
|
AddUntilStep("second playlist item changed", () => MultiplayerClient.ClientAPIRoom?.Playlist[1].Beatmap != firstBeatmap);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestAddItemsAsHost()
|
public void TestAddItemsAsHost()
|
||||||
{
|
{
|
||||||
addItem(() => OtherBeatmap);
|
addItem(() => OtherBeatmap);
|
||||||
|
@ -377,6 +377,17 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest]
|
||||||
|
/*
|
||||||
|
* On a slight investigation, this is occurring due to the ready button
|
||||||
|
* not receiving the click input generated by the manual input manager.
|
||||||
|
*
|
||||||
|
* TearDown : System.TimeoutException : "wait for ready button to be enabled" timed out
|
||||||
|
* --TearDown
|
||||||
|
* at osu.Framework.Testing.Drawables.Steps.UntilStepButton.<>c__DisplayClass11_0.<.ctor>b__0()
|
||||||
|
* at osu.Framework.Testing.Drawables.Steps.StepButton.PerformStep(Boolean userTriggered)
|
||||||
|
* at osu.Framework.Testing.TestScene.runNextStep(Action onCompletion, Action`1 onError, Func`2 stopCondition)
|
||||||
|
*/
|
||||||
public void TestUserSetToIdleWhenBeatmapDeleted()
|
public void TestUserSetToIdleWhenBeatmapDeleted()
|
||||||
{
|
{
|
||||||
createRoom(() => new Room
|
createRoom(() => new Room
|
||||||
@ -398,6 +409,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestPlayStartsWithCorrectBeatmapWhileAtSongSelect()
|
public void TestPlayStartsWithCorrectBeatmapWhileAtSongSelect()
|
||||||
{
|
{
|
||||||
PlaylistItem? item = null;
|
PlaylistItem? item = null;
|
||||||
@ -438,6 +450,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestPlayStartsWithCorrectRulesetWhileAtSongSelect()
|
public void TestPlayStartsWithCorrectRulesetWhileAtSongSelect()
|
||||||
{
|
{
|
||||||
PlaylistItem? item = null;
|
PlaylistItem? item = null;
|
||||||
@ -478,6 +491,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestPlayStartsWithCorrectModsWhileAtSongSelect()
|
public void TestPlayStartsWithCorrectModsWhileAtSongSelect()
|
||||||
{
|
{
|
||||||
PlaylistItem? item = null;
|
PlaylistItem? item = null;
|
||||||
@ -651,6 +665,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestGameplayFlow()
|
public void TestGameplayFlow()
|
||||||
{
|
{
|
||||||
createRoom(() => new Room
|
createRoom(() => new Room
|
||||||
@ -678,6 +693,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestGameplayExitFlow()
|
public void TestGameplayExitFlow()
|
||||||
{
|
{
|
||||||
Bindable<double>? holdDelay = null;
|
Bindable<double>? holdDelay = null;
|
||||||
@ -715,6 +731,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestGameplayDoesntStartWithNonLoadedUser()
|
public void TestGameplayDoesntStartWithNonLoadedUser()
|
||||||
{
|
{
|
||||||
createRoom(() => new Room
|
createRoom(() => new Room
|
||||||
@ -796,6 +813,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestSpectatingStateResetOnBackButtonDuringGameplay()
|
public void TestSpectatingStateResetOnBackButtonDuringGameplay()
|
||||||
{
|
{
|
||||||
createRoom(() => new Room
|
createRoom(() => new Room
|
||||||
@ -831,6 +849,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestSpectatingStateNotResetOnBackButtonOutsideOfGameplay()
|
public void TestSpectatingStateNotResetOnBackButtonOutsideOfGameplay()
|
||||||
{
|
{
|
||||||
createRoom(() => new Room
|
createRoom(() => new Room
|
||||||
@ -869,6 +888,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestItemAddedByOtherUserDuringGameplay()
|
public void TestItemAddedByOtherUserDuringGameplay()
|
||||||
{
|
{
|
||||||
createRoom(() => new Room
|
createRoom(() => new Room
|
||||||
@ -899,6 +919,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[FlakyTest] // See above
|
||||||
public void TestItemAddedAndDeletedByOtherUserDuringGameplay()
|
public void TestItemAddedAndDeletedByOtherUserDuringGameplay()
|
||||||
{
|
{
|
||||||
createRoom(() => new Room
|
createRoom(() => new Room
|
||||||
|
Loading…
Reference in New Issue
Block a user