mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Reduce calls to LoadTrack
by implicitly running on test/dummy classes
This commit is contained in:
@ -365,6 +365,11 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
else
|
||||
track = audio?.Tracks.GetVirtual(trackLength);
|
||||
|
||||
// We are guaranteed to have a virtual track.
|
||||
// To ease testability, ensure the track is available from point of construction.
|
||||
// (Usually this would be done by MusicController for us).
|
||||
LoadTrack();
|
||||
}
|
||||
|
||||
~ClockBackedTestWorkingBeatmap()
|
||||
|
Reference in New Issue
Block a user