Attempt to fix test failures on windows due to context being held open

This commit is contained in:
Dean Herbert 2022-01-22 12:24:05 +09:00
parent a89954d67f
commit c9db0181d0
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ public void TestAccessAfterStorageMigrate()
liveBeatmap = beatmap.ToLive(realmFactory);
});
using (realmFactory.BlockAllOperations())
{
// recycle realm before migrating
}
using (var migratedStorage = new TemporaryNativeStorage("realm-test-migration-target"))
{
migratedStorage.DeleteDirectory(string.Empty);