mirror of https://github.com/ppy/osu
Catch file exception in test reset
This commit is contained in:
parent
b6c86d512a
commit
76a7e9cde8
|
@ -149,7 +149,15 @@ public void ResetDatabase()
|
|||
lock (writeLock)
|
||||
{
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue