Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tests/Common/Utils/XunitLoggerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ public void Log<TState>(
sb.Append(exception.ToString());
}

output.WriteLine(sb.ToString());
try
{
output.WriteLine(sb.ToString());
}
catch
{
// Ignore exceptions from xUnit's TestOutputHelper when the test has already completed.
// Background work may continue logging after xUnit has disposed the test context.
}
}

public bool IsEnabled(LogLevel logLevel) => true;
Expand Down