1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 18:07:25 +08:00

Toggling out CI tests

I'm still trying to track donwn why GitHub won't accept my CI.
I'm toggling tests to see what is the problem.
This commit is contained in:
Joseph-Ramos-CMU 2020-12-14 19:10:26 -05:00
parent 37a6010887
commit bd2e42e786

View File

@ -240,45 +240,44 @@ namespace osu.Game.Tests.Visual.Online
AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2)); AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2));
} }
[Test] // [Test]
public void TestCtrlShiftTShortcut2() // public void TestCtrlShiftTShortcut2()
{ // {
AddStep("Join 2 channels", () => // AddStep("Join 2 channels", () =>
{ // {
channelManager.JoinChannel(channel1); // channelManager.JoinChannel(channel1);
channelManager.JoinChannel(channel2); // channelManager.JoinChannel(channel2);
}); // });
// Close channels 1 and channel 2 // // Close channels 1 and channel 2
AddStep("Leave channel 2", () => channelManager.LeaveChannel(channel2)); // AddStep("Leave channel 2", () => channelManager.LeaveChannel(channel2));
AddStep("Leave channel 1", () => channelManager.LeaveChannel(channel1)); // AddStep("Leave channel 1", () => channelManager.LeaveChannel(channel1));
AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any()); // AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any());
pressControlShiftT(); // pressControlShiftT();
// Channel 1 should now be open again. Channel 2 should not // // Channel 1 should now be open again. Channel 2 should not
AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1)); // AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1));
AddAssert("channel 2 closed", () => !channelManager.JoinedChannels.Contains(channel2)); // AddAssert("channel 2 closed", () => !channelManager.JoinedChannels.Contains(channel2));
pressControlShiftT(); // pressControlShiftT();
// Both Channel 1 and Channel 2 should be open // // Both Channel 1 and Channel 2 should be open
AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1)); // AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1));
AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2)); // AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2));
// Processing this again should have not effect // // Processing this again should have not effect
pressControlShiftT(); // pressControlShiftT();
AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1)); // AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1));
AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2)); // AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2));
// Close channel 2 again // // Close channel 2 again
AddStep("Leave channel 2", () => channelManager.LeaveChannel(channel2)); // AddStep("Leave channel 2", () => channelManager.LeaveChannel(channel2));
// Both channel 1 and channel 2 should be open
pressControlShiftT();
AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1));
AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2));
}
// // Both channel 1 and channel 2 should be open
// pressControlShiftT();
// AddAssert("channel 1 open", () => channelManager.JoinedChannels.Contains(channel1));
// AddAssert("channel 2 open", () => channelManager.JoinedChannels.Contains(channel2));
// }
private void pressChannelHotkey(int number) private void pressChannelHotkey(int number)
{ {
var channelKey = Key.Number0 + number; var channelKey = Key.Number0 + number;