1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 00:44:18 +08:00

Attempt to fix flaky tests by removing finaliser

This commit is contained in:
Dan Balasescu
2025-06-03 18:02:37 +09:00
Unverified
parent a1b03cb7fa
commit b152b786a5
+1 -9
View File
@@ -341,8 +341,6 @@ namespace osu.Game.Tests.Visual
{
private readonly Track track;
private readonly TrackVirtualStore store;
/// <summary>
/// Create an instance which creates a <see cref="TestBeatmap"/> for the provided ruleset when requested.
/// </summary>
@@ -372,7 +370,7 @@ namespace osu.Game.Tests.Visual
if (referenceClock != null)
{
store = new TrackVirtualStore(referenceClock);
var store = new TrackVirtualStore(referenceClock);
audio.AddItem(store);
track = store.GetVirtual(trackLength);
}
@@ -385,12 +383,6 @@ namespace osu.Game.Tests.Visual
LoadTrack();
}
~ClockBackedTestWorkingBeatmap()
{
// Remove the track store from the audio manager
store?.Dispose();
}
protected override Track GetBeatmapTrack() => track;
public override bool TryTransferTrack(WorkingBeatmap target)