diff --git a/vault/http_test.go b/vault/http_test.go index d82d30b1c..6538e5370 100644 --- a/vault/http_test.go +++ b/vault/http_test.go @@ -54,7 +54,7 @@ func TestRequestAndFollow_GetWithRedirect(t *testing.T) { res, err := requestAndFollow(tc, "POST", u, nil) assert.NoError(t, err) - assert.Equal(t, 200, res.StatusCode) + assert.Equal(t, http.StatusOK, res.StatusCode) } @@ -64,5 +64,5 @@ func TestRequestAndFollow_GetNoRedirect(t *testing.T) { res, err := requestAndFollow(tc, "POST", u, nil) assert.NoError(t, err) - assert.Equal(t, 200, res.StatusCode) + assert.Equal(t, http.StatusOK, res.StatusCode) }