mirror of https://github.com/ppy/osu
Fix potential failure during cleanup of files in migration tests
This commit is contained in:
parent
2cd1bde2bf
commit
7f7cf0b927
|
@ -20,7 +20,7 @@ public class CustomTourneyDirectoryTest
|
|||
[Test]
|
||||
public void TestDefaultDirectory()
|
||||
{
|
||||
using (HeadlessGameHost host = new CleanRunHeadlessGameHost())
|
||||
using (HeadlessGameHost host = new CleanRunHeadlessGameHost(nameof(TestDefaultDirectory)))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -138,9 +138,14 @@ public void TestMigration()
|
|||
Assert.True(storage.Exists(flagFile));
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
host.Storage.Delete("tournament.ini");
|
||||
host.Storage.DeleteDirectory("tournaments");
|
||||
}
|
||||
catch { }
|
||||
|
||||
host.Exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue