1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Avoid intercepting temporary files in new test

This commit is contained in:
Dean Herbert 2023-07-27 17:44:34 +09:00
parent 7bc3edb05a
commit e702e0a23e

View File

@ -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))