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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user