Add test coverage ensuring ruleset ID is correct after bracket read

Historically, tournament client may have written incorrect `OnlineID`
values. We wanted to use `ShortName` to re-fetch the ruleset. This test
ensures this flow is working correctly.
This commit is contained in:
Dean Herbert
2022-03-31 18:31:18 +09:00
parent bc4d6a3ace
commit a7a7584d3e
2 changed files with 60 additions and 4 deletions

View File

@ -64,8 +64,6 @@ namespace osu.Game.Tournament
Textures.AddStore(new TextureLoaderStore(new StorageBackedResourceStore(storage)));
dependencies.CacheAs(new StableInfo(storage));
Task.Run(readBracket);
}
private void readBracket()
@ -290,6 +288,8 @@ namespace osu.Game.Tournament
MenuCursorContainer.Cursor.Alpha = 0;
base.LoadComplete();
Task.Run(readBracket);
}
protected virtual void SaveChanges()