Skip to content

Commit

Permalink
fixup! fixup! fixup! Handle vault redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew MacInnis authored and Drew MacInnis committed Nov 19, 2016
1 parent 1288edc commit e6ab76a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vault/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}

Expand All @@ -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)
}

0 comments on commit e6ab76a

Please # to comment.