We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbeec0 commit 2cc6f6bCopy full SHA for 2cc6f6b
src/Components/test/E2ETest/Infrastructure/ServerFixtures/WebHostServerFixture.cs
@@ -36,9 +36,15 @@ public override void Dispose()
36
37
private async ValueTask DisposeCore()
38
{
39
- // This can be null if creating the webhost throws, we don't want to throw here and hide
40
- // the original exception.
41
- Host?.Dispose();
42
- await Host?.StopAsync();
+ try
+ {
+ await Host?.StopAsync();
+ // This can be null if creating the webhost throws, we don't want to throw here and hide
43
+ // the original exception.
44
+ Host?.Dispose();
45
+ }
46
+ catch
47
48
49
}
50
0 commit comments