File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
dotnet/test/common/BiDi/Network Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ class NetworkTest : BiDiTestFixture
2929 [ Test ]
3030 public async Task CanAddDataCollector ( )
3131 {
32- await using var collector = await bidi . Network . AddDataCollectorAsync ( [ DataType . Response ] , int . MaxValue ) ;
32+ // Firefox doesn't like int.MaxValue as max encoded data size
33+ // invalid argument: Expected "maxEncodedDataSize" to be less than the max total data size available (200000000), got 2147483647
34+ await using var collector = await bidi . Network . AddDataCollectorAsync ( [ DataType . Response ] , 200000000 ) ;
3335
3436 Assert . That ( collector , Is . Not . Null ) ;
3537 }
@@ -222,7 +224,9 @@ public async Task CanFailRequest()
222224 [ Test ]
223225 public async Task CanGetData ( )
224226 {
225- await using var collector = await bidi . Network . AddDataCollectorAsync ( [ DataType . Response ] , int . MaxValue ) ;
227+ // Firefox doesn't like int.MaxValue as max encoded data size
228+ // invalid argument: Expected "maxEncodedDataSize" to be less than the max total data size available (200000000), got 2147483647
229+ await using var collector = await bidi . Network . AddDataCollectorAsync ( [ DataType . Response ] , 200000000 ) ;
226230
227231 TaskCompletionSource < string > responseBodyCompletionSource = new ( ) ;
228232
You can’t perform that action at this time.
0 commit comments