From e6ab76a44e107113e0d72250457026c43ab55cdf Mon Sep 17 00:00:00 2001 From: Drew MacInnis Date: Sat, 19 Nov 2016 10:02:33 -0500 Subject: [PATCH] fixup! fixup! fixup! Handle vault redirects --- vault/http_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }