1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Make sure the import tests exit their hosts

This commit is contained in:
smoogipoo 2018-02-07 15:57:16 +09:00
parent f9cba37a65
commit 74016a1482

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,9 @@ namespace osu.Game.Tests.Beatmaps.IO
ensureLoaded(osu);
waitForOrAssert(() => !File.Exists(temp), "Temporary still exists after IPC import", 5000);
host.Exit();
client.Exit();
}
}
@ -86,6 +91,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();
}
}