From a00f83e7152b1734b2748be8e90a89c020528ee4 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 8 Nov 2017 10:15:56 -0500 Subject: [PATCH] Put back original test cluster client redirect behavior --- vault/testing.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vault/testing.go b/vault/testing.go index e3dca06d60..130c8fdd61 100644 --- a/vault/testing.go +++ b/vault/testing.go @@ -1268,8 +1268,7 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te Transport: transport, CheckRedirect: func(*http.Request, []*http.Request) error { // This can of course be overridden per-test by using its own client - //return fmt.Errorf("redirects not allowed in these tests") - return http.ErrUseLastResponse + return fmt.Errorf("redirects not allowed in these tests") }, } config := api.DefaultConfig()