Merge pull request #2030 from smoogipoo/fix-import-tests

Make sure the import tests exit their hosts
This commit is contained in:
Dan Balasescu
2018-02-08 14:28:52 +09:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@ -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();
}
}