From 0c0aa691e0fb685d29c9a73a25d2e50f8c2127bc Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Thu, 15 Dec 2022 14:09:23 +0100 Subject: [PATCH] fix: Cancel ExceptionTsc on dispose --- src/bunit.core/Rendering/TestRenderer.cs | 1 + 1 file changed, 1 insertion(+) 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);