1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Catch file exception in test reset

This commit is contained in:
Dean Herbert 2019-12-12 14:04:57 +09:00
parent b6c86d512a
commit 76a7e9cde8

View File

@ -149,7 +149,15 @@ namespace osu.Game.Database
lock (writeLock) lock (writeLock)
{ {
recycleThreadContexts(); recycleThreadContexts();
storage.DeleteDatabase(database_name);
try
{
storage.DeleteDatabase(database_name);
}
catch
{
// for now we are not sure why file handles are kept open by EF, but this is generally only used in testing
}
} }
} }
} }