From e702e0a23e6dc4542504f53d5819a1d61fc4292d Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 27 Jul 2023 17:44:34 +0900 Subject: [PATCH] Avoid intercepting temporary files in new test --- .../Visual/Gameplay/TestScenePlayerLocalScoreImport.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLocalScoreImport.cs b/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLocalScoreImport.cs index 2955b98fcd..feda251744 100644 --- a/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLocalScoreImport.cs +++ b/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLocalScoreImport.cs @@ -172,7 +172,8 @@ namespace osu.Game.Tests.Visual.Gameplay string? filePath = null; - AddUntilStep("wait for export file", () => filePath = LocalStorage.GetFiles("exports").SingleOrDefault(), () => Is.Not.Null); + // Files starting with _ are temporary, created by CreateFileSafely call. + AddUntilStep("wait for export file", () => filePath = LocalStorage.GetFiles("exports").SingleOrDefault(f => !f.StartsWith("_", StringComparison.Ordinal)), () => Is.Not.Null); AddAssert("filesize is non-zero", () => { using (var stream = LocalStorage.GetStream(filePath))