He-Pin commented on code in PR #44:
URL: https://github.com/apache/incubator-pekko/pull/44#discussion_r1209393862


##########
stream-tests/src/test/scala/org/apache/pekko/stream/scaladsl/JsonFramingSpec.scala:
##########
@@ -41,7 +41,7 @@ class JsonFramingSpec extends PekkoSpec {
           |""".stripMargin // also should complete once notices end of array
 
       val result =
-        
Source.single(ByteString(input)).via(JsonFraming.objectScanner(Int.MaxValue)).runFold(Seq.empty[String])
 {
+        
Source.single(ByteString(input)).via(JsonFraming.objectScanner(64)).runFold(Seq.empty[String])
 {

Review Comment:
   I changed it `54`, the test case not pass.
   ```
   JSON element exceeded maximumObjectLength (54 bytes)!
   org.apache.pekko.stream.scaladsl.Framing$FramingException: JSON element 
exceeded maximumObjectLength (54 bytes)!
   ```
   
![image](https://github.com/apache/incubator-pekko/assets/501740/b124d717-74ab-44c8-9a48-bf35c6b4fe77)
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to