mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:43:22 +08:00
Fix chat overlay tests
Not entirely sure why they were failing previously, but the most likely explanation is that by freak accident some mock requests would previously execute immediately rather than be scheduled on the API thread, which would change execution ordering and ensure that `ChannelManager.CurrentChannel` would become the joined channel, rather than remaining at the channel listing.
This commit is contained in:
parent
8ffd4aa82c
commit
8b04455c29
@ -446,7 +446,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
{
|
{
|
||||||
AddStep("Show overlay with channel 1", () =>
|
AddStep("Show overlay with channel 1", () =>
|
||||||
{
|
{
|
||||||
channelManager.JoinChannel(testChannel1);
|
channelManager.CurrentChannel.Value = channelManager.JoinChannel(testChannel1);
|
||||||
chatOverlay.Show();
|
chatOverlay.Show();
|
||||||
});
|
});
|
||||||
waitForChannel1Visible();
|
waitForChannel1Visible();
|
||||||
@ -462,7 +462,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
{
|
{
|
||||||
AddStep("Show overlay with channel 1", () =>
|
AddStep("Show overlay with channel 1", () =>
|
||||||
{
|
{
|
||||||
channelManager.JoinChannel(testChannel1);
|
channelManager.CurrentChannel.Value = channelManager.JoinChannel(testChannel1);
|
||||||
chatOverlay.Show();
|
chatOverlay.Show();
|
||||||
});
|
});
|
||||||
waitForChannel1Visible();
|
waitForChannel1Visible();
|
||||||
|
Loading…
Reference in New Issue
Block a user