mirror of https://github.com/ppy/osu
Add local `UserLookupCache` to avoid online requests being fired from multiplayer tests
This commit is contained in:
parent
9c2fed4806
commit
10e7c846e5
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue