Skip to content

Commit

Permalink
the GC.Collect and GC.WaitForPendingFinalizers is also called by the …
Browse files Browse the repository at this point in the history
…PlaywrightTest attribute
  • Loading branch information
Brimerland committed Mar 26, 2024
1 parent ff7cbae commit ae17267
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Playwright.Tests/BrowserContextRouteTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,6 @@ await route.FulfillAsync(new()
// let the test run for 5 second
await Task.Delay(5000);

// trigger garbage collection which checks for unorbserved exceptions
// in collected tasks
GC.Collect();
GC.WaitForPendingFinalizers();

// unobserved task exceptions are automatically collected by the PlaywrightTest attribute
}

Expand Down

0 comments on commit ae17267

Please sign in to comment.