Skip to content

Commit

Permalink
Fix WriteLargeJsonToStreamWithoutFlushing test (#34914)
Browse files Browse the repository at this point in the history
  • Loading branch information
layomia committed Apr 14, 2020
1 parent ae227d5 commit b037784
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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<OverflowException>(() => writer.WriteStringValue(text3));
Assert.Throws<OutOfMemoryException>(() => writer.WriteStringValue(text3));

Assert.Equal(1_050_097_521, writer.BytesPending);

Expand Down

0 comments on commit b037784

Please sign in to comment.