mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Ensure CurrentTrack is never null
This commit is contained in:
@ -136,8 +136,8 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddUntilStep("Wait for music controller", () => Game.MusicController.IsLoaded);
|
||||
AddStep("Seek close to end", () =>
|
||||
{
|
||||
Game.MusicController.SeekTo(MusicController.CurrentTrack.AsNonNull().Length - 1000);
|
||||
MusicController.CurrentTrack.AsNonNull().Completed += () => trackCompleted = true;
|
||||
Game.MusicController.SeekTo(MusicController.CurrentTrack.Length - 1000);
|
||||
MusicController.CurrentTrack.Completed += () => trackCompleted = true;
|
||||
});
|
||||
|
||||
AddUntilStep("Track was completed", () => trackCompleted);
|
||||
|
Reference in New Issue
Block a user