From 2799586f45dc94921c960730d06eccde3cb70e59 Mon Sep 17 00:00:00 2001 From: Brian Kassouf Date: Mon, 27 Mar 2017 11:46:20 -0700 Subject: [PATCH] Remove the unused sync.Once object --- builtin/logical/database/dbs/plugin_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/builtin/logical/database/dbs/plugin_test.go b/builtin/logical/database/dbs/plugin_test.go index 74e103c4a..151d0c88f 100644 --- a/builtin/logical/database/dbs/plugin_test.go +++ b/builtin/logical/database/dbs/plugin_test.go @@ -9,7 +9,6 @@ import ( "net" "os" "os/exec" - "sync" "testing" "time" @@ -19,10 +18,6 @@ import ( "github.com/hashicorp/vault/vault" ) -var ( - testPluginImagePull sync.Once -) - type mockPlugin struct { users map[string][]string CredentialsProducer @@ -119,6 +114,8 @@ func getCore(t *testing.T) (*vault.Core, net.Listener, logical.SystemView) { return core, ln, sys } +// This is not an actual test case, it's a helper function that will be executed +// by the go-plugin client via an exec call. func TestPlugin_Main(t *testing.T) { if os.Getenv(pluginutil.PluginUnwrapTokenEnv) == "" { return