mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +08:00
Merge pull request #13838 from peppy/fix-access-denied-test-failures
Fix test failures due to logger pollution
This commit is contained in:
commit
94406d77de
@ -25,8 +25,11 @@ namespace osu.Game.Tests
|
||||
|
||||
protected override void SetupForRun()
|
||||
{
|
||||
base.SetupForRun();
|
||||
Storage.DeleteDirectory(string.Empty);
|
||||
|
||||
// base call needs to be run *after* storage is emptied, as it updates the (static) logger's storage and may start writing
|
||||
// log entries from another source if a unit test host is shared over multiple tests, causing a file access denied exception.
|
||||
base.SetupForRun();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user