mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:05:37 +08:00
Merge pull request #2030 from smoogipoo/fix-import-tests
Make sure the import tests exit their hosts
This commit is contained in:
commit
998acc5150
@ -1 +1 @@
|
||||
Subproject commit 1440ae8538560b3c40883ec51ab39108d6a69e3b
|
||||
Subproject commit eba12eb4a0fa6238873dd266deb35bfdece21a6a
|
@ -37,6 +37,8 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
ensureLoaded(osu);
|
||||
|
||||
waitForOrAssert(() => !File.Exists(temp), "Temporary file still exists after standard import", 5000);
|
||||
|
||||
host.Exit();
|
||||
}
|
||||
}
|
||||
|
||||
@ -64,6 +66,8 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
ensureLoaded(osu);
|
||||
|
||||
waitForOrAssert(() => !File.Exists(temp), "Temporary still exists after IPC import", 5000);
|
||||
|
||||
host.Exit();
|
||||
}
|
||||
}
|
||||
|
||||
@ -86,6 +90,8 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
File.Delete(temp);
|
||||
|
||||
Assert.IsFalse(File.Exists(temp), "We likely held a read lock on the file when we shouldn't");
|
||||
|
||||
host.Exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user