Skip to content

Commit

Permalink
DisposeAsync at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Nov 22, 2024
1 parent 2d719cc commit e3e257e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Playwright.Xunit/BrowserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public override async Task InitializeAsync()

public override async Task DisposeAsync()
{
await base.DisposeAsync().ConfigureAwait(false);
if (TestOk)
{
foreach (var context in _contexts)
Expand All @@ -58,5 +57,6 @@ public override async Task DisposeAsync()
}
_contexts.Clear();
Browser = null!;
await base.DisposeAsync().ConfigureAwait(false);
}
}
2 changes: 1 addition & 1 deletion src/Playwright.Xunit/WorkerAwareTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ async public override Task InitializeAsync()

public async override Task DisposeAsync()
{
await base.DisposeAsync().ConfigureAwait(false);
if (TestOk)
{
foreach (var kv in _currentWorker.Services)
Expand All @@ -90,6 +89,7 @@ public async override Task DisposeAsync()
}
_currentWorker.Services.Clear();
}
await base.DisposeAsync().ConfigureAwait(false);
}
}

Expand Down

0 comments on commit e3e257e

Please sign in to comment.