diff --git a/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs b/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs index af7a511e6dbe3..b01a19d4d0ec1 100644 --- a/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs +++ b/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs @@ -752,7 +752,7 @@ public void WriteLargeJsonToStreamWithoutFlushing() Assert.Equal(1_050_097_521, writer.BytesPending); // Next write forces a grow beyond 2 GB - Assert.Throws(() => writer.WriteStringValue(text3)); + Assert.Throws(() => writer.WriteStringValue(text3)); Assert.Equal(1_050_097_521, writer.BytesPending);