Merge pull request #18865 from peppy/fix-flaky-chat-test

Fix chat tests failing 1/10000 runs
This commit is contained in:
Dan Balasescu
2022-06-27 18:06:00 +09:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@ -15,10 +15,12 @@ namespace osu.Game.Online.API
{
public class DummyAPIAccess : Component, IAPIProvider
{
public const int DUMMY_USER_ID = 1001;
public Bindable<APIUser> LocalUser { get; } = new Bindable<APIUser>(new APIUser
{
Username = @"Dummy",
Id = 1001,
Id = DUMMY_USER_ID,
});
public BindableList<APIUser> Friends { get; } = new BindableList<APIUser>();