diff --git a/controller/channel-test.go b/controller/channel-test.go index 2ae8b0ef6..8ebfbdf64 100644 --- a/controller/channel-test.go +++ b/controller/channel-test.go @@ -332,7 +332,7 @@ func testChannel(channel *model.Channel, testModel string, endpointType string) } requestBody := bytes.NewBuffer(jsonData) - c.Request.Body = io.NopCloser(requestBody) + c.Request.Body = io.NopCloser(bytes.NewBuffer(jsonData)) resp, err := adaptor.DoRequest(c, info, requestBody) if err != nil { return testResult{