mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 09:23:06 +08:00
Merge pull request #15339 from smoogipoo/fix-test-crash
Fix playlists room creation test crash
This commit is contained in:
commit
d8d4839e43
@ -64,7 +64,12 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
|||||||
public override void SetUpSteps()
|
public override void SetUpSteps()
|
||||||
{
|
{
|
||||||
base.SetUpSteps();
|
base.SetUpSteps();
|
||||||
AddStep("setup API", () => ((DummyAPIAccess)API).HandleRequest = request => OnlinePlayDependencies.RequestsHandler.HandleRequest(request, API.LocalUser.Value, game));
|
|
||||||
|
AddStep("setup API", () =>
|
||||||
|
{
|
||||||
|
var handler = OnlinePlayDependencies.RequestsHandler;
|
||||||
|
((DummyAPIAccess)API).HandleRequest = request => handler.HandleRequest(request, API.LocalUser.Value, game);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user