Skip to content

Commit 373fd9a

Browse files
committed
Decrease max total data size
1 parent b605190 commit 373fd9a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)