Skip to content

Commit 07ab125

Browse files
committed
bugfix on mockexecutor
1 parent 164e90b commit 07ab125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpclient/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (m *MockExecutor) Do(req *http.Request) (*http.Response, error) {
5151
return nil, fmt.Errorf("unknown response code requested: %d", m.LockedResponseCode)
5252
}
5353

54-
response := &http.Response{StatusCode: m.LockedResponseCode}
54+
response := &http.Response{StatusCode: m.LockedResponseCode, Body: nil}
5555

5656
return response, nil
5757
}

0 commit comments

Comments
 (0)