1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:33:21 +08:00

Merge pull request #13792 from peppy/fix-migration-cleanup-failure

Fix potential failure during cleanup of files in migration tests
This commit is contained in:
Dean Herbert 2021-07-06 15:39:04 +09:00 committed by GitHub
commit 4366be5c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ namespace osu.Game.Tournament.Tests.NonVisual
[Test]
public void TestDefaultDirectory()
{
using (HeadlessGameHost host = new CleanRunHeadlessGameHost())
using (HeadlessGameHost host = new CleanRunHeadlessGameHost(nameof(TestDefaultDirectory)))
{
try
{
@ -139,8 +139,13 @@ namespace osu.Game.Tournament.Tests.NonVisual
}
finally
{
host.Storage.Delete("tournament.ini");
host.Storage.DeleteDirectory("tournaments");
try
{
host.Storage.Delete("tournament.ini");
host.Storage.DeleteDirectory("tournaments");
}
catch { }
host.Exit();
}
}