mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Attempt to fix test failures on windows due to context being held open
This commit is contained in:
parent
a89954d67f
commit
c9db0181d0
@ -47,6 +47,11 @@ namespace osu.Game.Tests.Database
|
|||||||
liveBeatmap = beatmap.ToLive(realmFactory);
|
liveBeatmap = beatmap.ToLive(realmFactory);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
using (realmFactory.BlockAllOperations())
|
||||||
|
{
|
||||||
|
// recycle realm before migrating
|
||||||
|
}
|
||||||
|
|
||||||
using (var migratedStorage = new TemporaryNativeStorage("realm-test-migration-target"))
|
using (var migratedStorage = new TemporaryNativeStorage("realm-test-migration-target"))
|
||||||
{
|
{
|
||||||
migratedStorage.DeleteDirectory(string.Empty);
|
migratedStorage.DeleteDirectory(string.Empty);
|
||||||
|
Loading…
Reference in New Issue
Block a user