Skip to content

Commit 4c30b72

Browse files
committed
fix test
For the regular client http body is guaranteed to be set if there is no error on transport level. Fake client should do the same.
1 parent f9043d1 commit 4c30b72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/csaf_downloader/forwarder_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ func (fc *fakeClient) Do(*http.Request) (*http.Response, error) {
349349
return &http.Response{
350350
Status: http.StatusText(http.StatusCreated),
351351
StatusCode: http.StatusCreated,
352+
Body: io.NopCloser(strings.NewReader("ok")),
352353
}, nil
353354
case 1:
354355
fc.state = 2

0 commit comments

Comments
 (0)