diff --git a/src/bunit.core/Rendering/TestRenderer.cs b/src/bunit.core/Rendering/TestRenderer.cs index 7ad4faae0..adf79be8e 100644 --- a/src/bunit.core/Rendering/TestRenderer.cs +++ b/src/bunit.core/Rendering/TestRenderer.cs @@ -201,6 +201,7 @@ protected override void Dispose(bool disposing) } renderedComponents.Clear(); + unhandledExceptionTsc.TrySetCanceled(); } base.Dispose(disposing);