mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Prevent test spectator clients from attempting hub connections
This commit is contained in:
@ -12,6 +12,7 @@ using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Online;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.Spectator;
|
||||
using osu.Game.Replays.Legacy;
|
||||
using osu.Game.Rulesets.Osu;
|
||||
@ -243,6 +244,12 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
{
|
||||
}
|
||||
|
||||
protected override HubClientConnector CreateConnector(string name, string endpoint, IAPIProvider api)
|
||||
{
|
||||
// do not pass API to prevent attempting failing connections on an actual hub.
|
||||
return base.CreateConnector(name, endpoint, null);
|
||||
}
|
||||
|
||||
public void StartPlay(int beatmapId)
|
||||
{
|
||||
this.beatmapId = beatmapId;
|
||||
|
Reference in New Issue
Block a user