Fix incorrect usages of user lookup cache in tests

This commit is contained in:
Dan Balasescu
2022-02-15 21:08:27 +09:00
parent 2675bb87ff
commit 539cbe62c6
8 changed files with 24 additions and 39 deletions

View File

@ -4,6 +4,7 @@
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Screens;
using osu.Game.Database;
using osu.Game.Online.API;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens;
@ -39,6 +40,12 @@ namespace osu.Game.Tests.Visual
[Cached(typeof(MultiplayerClient))]
public readonly TestMultiplayerClient Client;
[Cached(typeof(UserLookupCache))]
private readonly UserLookupCache userLookupCache = new TestUserLookupCache();
[Cached]
private readonly BeatmapLookupCache beatmapLookupCache = new BeatmapLookupCache();
private readonly OsuScreenStack screenStack;
private readonly TestMultiplayer multiplayerScreen;
@ -48,6 +55,8 @@ namespace osu.Game.Tests.Visual
InternalChildren = new Drawable[]
{
userLookupCache,
beatmapLookupCache,
Client = new TestMultiplayerClient(RoomManager),
screenStack = new OsuScreenStack
{