Skip to content

Commit

Permalink
sign
Browse files Browse the repository at this point in the history
Signed-off-by: Avishay <avishay.balter@gmail.com>
  • Loading branch information
balteravishay committed May 29, 2023
1 parent 2a501cd commit c555956
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/package_managers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2158,14 +2158,15 @@ func nugetIndexOrPageTestResults(url string, test *nugetTest) (*http.Response, e
//nolint
return nil, errors.New("error")
}
if test.wantErr && (test.args.resultPackageRegistrationPages[urlResponseIndex].response == "") {
page := test.args.resultPackageRegistrationPages[urlResponseIndex]
if test.wantErr && (page.response == "") {
//nolint
return nil, errors.New("error")
}

return &http.Response{
StatusCode: 200,
Body: io.NopCloser(bytes.NewBufferString(test.args.resultPackageRegistrationPages[urlResponseIndex].response)),
Body: io.NopCloser(bytes.NewBufferString(page.response)),
}, nil
}
}
Expand Down

0 comments on commit c555956

Please sign in to comment.