Skip to content

Commit

Permalink
fix #645: fix error messages
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alexey Novikov <alexey@novikov.io>
  • Loading branch information
alekswn committed Mar 2, 2019
1 parent b4cb46f commit d1c0729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/rest/restapi_test.go
Expand Up @@ -1051,7 +1051,7 @@ type httpTestcase struct {

func httpStatusCodeChecker(resp *http.Response, expectedStatus int) error {
if resp.StatusCode != expectedStatus {
return fmt.Errorf("Bad HTTP status code: %d", resp.StatusCode)
return fmt.Errorf("bad HTTP status code: %d", resp.StatusCode)
}
return nil
}
Expand All @@ -1062,7 +1062,7 @@ func assertHTTPStatusIsUnauthoriazed(resp *http.Response) error {

func assertHTTPStatusIsNotUnauthoriazed(resp *http.Response) error {
if assertHTTPStatusIsUnauthoriazed(resp) == nil {
return fmt.Errorf("Unexpected HTTP status code: %d", http.StatusUnauthorized)
return fmt.Errorf("unexpected HTTP status code: %d", http.StatusUnauthorized)
}
return nil
}
Expand Down

0 comments on commit d1c0729

Please sign in to comment.