Commit 7564073
Fix test failure from background logging after xUnit test disposal
Add try-catch in XunitLoggerProvider to gracefully handle exceptions when
logging after xUnit's TestOutputHelper has been disposed. This prevents
NullReferenceException when background work continues after test completion.
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>1 parent e8e5afd commit 7564073
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
0 commit comments