diff --git a/src/Uno.UI.RuntimeTests/Tests/HotReload/Frame/HRApp/Tests/Given_TextBlock.cs b/src/Uno.UI.RuntimeTests/Tests/HotReload/Frame/HRApp/Tests/Given_TextBlock.cs index c87b9915f418..c99eec807d83 100644 --- a/src/Uno.UI.RuntimeTests/Tests/HotReload/Frame/HRApp/Tests/Given_TextBlock.cs +++ b/src/Uno.UI.RuntimeTests/Tests/HotReload/Frame/HRApp/Tests/Given_TextBlock.cs @@ -121,7 +121,15 @@ public async Task When_Changing_TextBlock_UsingHRClient_NoChanges() true) .WithExtendedTimeouts(); // Required for CI - await hr.UpdateFileAsync(req, ct); + try + { + await hr.UpdateFileAsync(req, ct); + } + finally + { + // Make sure to undo to not impact other tests! + await hr.UpdateFileAsync(req.Undo(waitForHotReload: false), CancellationToken.None); + } } // Another version of the test above, but pausing the TypeMapping before calling the file update