Supress log errors in testing

This commit is contained in:
Timothy Baldridge 2020-09-08 22:06:15 -06:00
parent d79277af74
commit 4c6f34cae5

View File

@ -18,7 +18,17 @@ namespace Wabbajack.VirtualFileSystem.Test
public FileExtractorTests(ITestOutputHelper helper)
{
_helper = helper;
_unsub = Utils.LogMessages.Subscribe(f => _helper.WriteLine(f.ShortDescription));
_unsub = Utils.LogMessages.Subscribe(f =>
{
try
{
_helper.WriteLine(f.ShortDescription);
}
catch (Exception _)
{
// ignored
}
});
}
public async Task InitializeAsync()