We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a8985b commit adb1dceCopy full SHA for adb1dce
1 file changed
dd-trace-core/src/test/groovy/datadog/trace/lambda/LambdaHandlerTest.groovy
@@ -312,7 +312,8 @@ class LambdaHandlerTest extends DDCoreSpecification {
312
def "test moshi toJson OutputStream"() {
313
given:
314
def body = "{\"body\":\"bababango\",\"statusCode\":\"200\"}"
315
- def myEvent = new ByteArrayOutputStream(body.getBytes())
+ def myEvent = new ByteArrayOutputStream()
316
+ myEvent.write(body.getBytes(), 0, body.length())
317
318
when:
319
def result = LambdaHandler.writeValueAsString(myEvent)
0 commit comments