Skip to content

Commit 51eb7fa

Browse files
committed
Revert exception handling changes in CanListenToFetchError
1 parent 771ef66 commit 51eb7fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dotnet/test/common/BiDi/Network/NetworkEventsTest.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,11 @@ public async Task CanListenToFetchError()
132132

133133
await using var subscription = await context.Network.OnFetchErrorAsync(tcs.SetResult);
134134

135-
await ((Task)context.NavigateAsync("https://not_a_valid_url.test", new() { Wait = ReadinessState.Complete }))
136-
.ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
135+
try
136+
{
137+
await context.NavigateAsync("https://not_a_valid_url.test", new() { Wait = ReadinessState.Complete });
138+
}
139+
catch (Exception) { }
137140

138141
var res = await tcs.Task.WaitAsync(TimeSpan.FromSeconds(5));
139142

0 commit comments

Comments
 (0)