Add test coverage

This commit is contained in:
Dean Herbert
2022-07-21 18:15:21 +09:00
parent d5e0dba9da
commit 1374738a0d
2 changed files with 136 additions and 2 deletions

View File

@ -35,6 +35,8 @@ namespace osu.Game
[Resolved]
private ILocalUserPlayInfo? localUserPlayInfo { get; set; }
protected virtual int TimeToSleepDuringGameplay => 30000;
protected override void LoadComplete()
{
base.LoadComplete();
@ -107,8 +109,8 @@ namespace osu.Game
{
while (localUserPlayInfo?.IsPlaying.Value == true)
{
Logger.Log("Background processing sleeping 30s due to active gameplay...");
Thread.Sleep(30000);
Logger.Log("Background processing sleeping due to active gameplay...");
Thread.Sleep(TimeToSleepDuringGameplay);
}
realmAccess.Run(r =>