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:
parent
7bc3edb05a
commit
e702e0a23e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user