mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Catch file exception in test reset
This commit is contained in:
parent
b6c86d512a
commit
76a7e9cde8
@ -149,8 +149,16 @@ namespace osu.Game.Database
|
|||||||
lock (writeLock)
|
lock (writeLock)
|
||||||
{
|
{
|
||||||
recycleThreadContexts();
|
recycleThreadContexts();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
storage.DeleteDatabase(database_name);
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user