From 0da8fa412d33edac658da342dc48d211e95fa461 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Mon, 4 Sep 2017 16:29:43 -0400 Subject: [PATCH] DoNotInit -> SkipInit --- vault/testing.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vault/testing.go b/vault/testing.go index 077d1c354..e152775dc 100644 --- a/vault/testing.go +++ b/vault/testing.go @@ -709,7 +709,7 @@ type TestClusterCore struct { type TestClusterOptions struct { KeepStandbysSealed bool - DoNotInit bool + SkipInit bool HandlerFunc func(*Core) http.Handler BaseListenAddress string NumCores int @@ -1065,7 +1065,7 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te } } - if !opts.DoNotInit { + if !opts.SkipInit { keys, root := TestCoreInitClusterWrapperSetup(t, cores[0], clusterAddrGen(listeners[0]), handlers[0]) barrierKeys, _ := copystructure.Copy(keys) testCluster.BarrierKeys = barrierKeys.([][]byte) @@ -1159,7 +1159,7 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te if err != nil { t.Fatal(err) } - if !opts.DoNotInit { + if !opts.SkipInit { apiClient.SetToken(testCluster.RootToken) } return apiClient