diff --git a/osu.Game.Tests/Editing/Checks/CheckAudioInVideoTest.cs b/osu.Game.Tests/Editing/Checks/CheckAudioInVideoTest.cs index eb35fa1d0f..04baf7d854 100644 --- a/osu.Game.Tests/Editing/Checks/CheckAudioInVideoTest.cs +++ b/osu.Game.Tests/Editing/Checks/CheckAudioInVideoTest.cs @@ -83,7 +83,7 @@ namespace osu.Game.Tests.Editing.Checks private BeatmapVerifierContext getContext(string resourceName, bool allowMissing = false) { - using Stream resourceStream = string.IsNullOrEmpty(resourceName) ? null : TestResources.OpenResource(resourceName); + Stream resourceStream = string.IsNullOrEmpty(resourceName) ? null : TestResources.OpenResource(resourceName); if (!allowMissing && resourceStream == null) throw new FileNotFoundException($"The requested test resource \"{resourceName}\" does not exist."); diff --git a/osu.Game.Tests/Editing/Checks/CheckTooShortAudioFilesTest.cs b/osu.Game.Tests/Editing/Checks/CheckTooShortAudioFilesTest.cs index e95665156f..e978af5e49 100644 --- a/osu.Game.Tests/Editing/Checks/CheckTooShortAudioFilesTest.cs +++ b/osu.Game.Tests/Editing/Checks/CheckTooShortAudioFilesTest.cs @@ -104,7 +104,7 @@ namespace osu.Game.Tests.Editing.Checks private BeatmapVerifierContext getContext(string resourceName, bool allowMissing = false) { - using Stream resourceStream = string.IsNullOrEmpty(resourceName) ? null : TestResources.OpenResource(resourceName); + Stream resourceStream = string.IsNullOrEmpty(resourceName) ? null : TestResources.OpenResource(resourceName); if (!allowMissing && resourceStream == null) throw new FileNotFoundException($"The requested test resource \"{resourceName}\" does not exist.");