fix: test failures

This commit is contained in:
Anders Liu 2019-12-28 00:06:56 -08:00
parent ece8aefe1f
commit 6359080d4f

View File

@ -54,7 +54,7 @@ func TestGetError(t *testing.T) {
{ {
code: http.StatusBadRequest, code: http.StatusBadRequest,
expected: &Error{ expected: &Error{
Retriable: true, Retriable: false,
HTTPStatusCode: http.StatusBadRequest, HTTPStatusCode: http.StatusBadRequest,
RawError: fmt.Errorf("HTTP response: 400"), RawError: fmt.Errorf("HTTP response: 400"),
}, },
@ -136,7 +136,7 @@ func TestGetStatusNotFoundAndForbiddenIgnoredError(t *testing.T) {
{ {
code: http.StatusBadRequest, code: http.StatusBadRequest,
expected: &Error{ expected: &Error{
Retriable: true, Retriable: false,
HTTPStatusCode: http.StatusBadRequest, HTTPStatusCode: http.StatusBadRequest,
RawError: fmt.Errorf("HTTP response: 400"), RawError: fmt.Errorf("HTTP response: 400"),
}, },
@ -191,7 +191,7 @@ func TestShouldRetryHTTPRequest(t *testing.T) {
}{ }{
{ {
code: http.StatusBadRequest, code: http.StatusBadRequest,
expected: true, expected: false,
}, },
{ {
code: http.StatusInternalServerError, code: http.StatusInternalServerError,