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.
CanListenToFetchError
1 parent 771ef66 commit 51eb7faCopy full SHA for 51eb7fa
dotnet/test/common/BiDi/Network/NetworkEventsTest.cs
@@ -132,8 +132,11 @@ public async Task CanListenToFetchError()
132
133
await using var subscription = await context.Network.OnFetchErrorAsync(tcs.SetResult);
134
135
- await ((Task)context.NavigateAsync("https://not_a_valid_url.test", new() { Wait = ReadinessState.Complete }))
136
- .ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
+ try
+ {
137
+ await context.NavigateAsync("https://not_a_valid_url.test", new() { Wait = ReadinessState.Complete });
138
+ }
139
+ catch (Exception) { }
140
141
var res = await tcs.Task.WaitAsync(TimeSpan.FromSeconds(5));
142
0 commit comments