Skip to content

Commit

Permalink
test(hr): Prevent cross-tests impacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Dec 12, 2024
1 parent 9861f72 commit f429746
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f429746

Please sign in to comment.