mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Prevent test spectator clients from attempting hub connections
This commit is contained in:
@ -13,6 +13,7 @@ using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Online;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.Spectator;
|
||||
using osu.Game.Replays.Legacy;
|
||||
using osu.Game.Rulesets.Osu.Scoring;
|
||||
@ -105,6 +106,12 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
this.totalUsers = totalUsers;
|
||||
}
|
||||
|
||||
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 Start(int beatmapId)
|
||||
{
|
||||
for (int i = 0; i < totalUsers; i++)
|
||||
|
Reference in New Issue
Block a user