Add local `UserLookupCache` to avoid online requests being fired from multiplayer tests

This commit is contained in:
Dean Herbert 2021-07-05 19:41:00 +09:00
parent 9c2fed4806
commit 10e7c846e5
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@
using osu.Framework.Screens;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Rooms;
@ -39,6 +40,9 @@ public class TestSceneMultiplayer : ScreenTestScene
private TestMultiplayer multiplayerScreen;
private TestMultiplayerClient client;
[Cached(typeof(UserLookupCache))]
private UserLookupCache lookupCache = new TestUserLookupCache();
[BackgroundDependencyLoader]
private void load(GameHost host, AudioManager audio)
{