Remove the unused sync.Once object

This commit is contained in:
Brian Kassouf 2017-03-27 11:46:20 -07:00
parent 29ae4602dc
commit 2799586f45
1 changed files with 2 additions and 5 deletions

View File

@ -9,7 +9,6 @@ import (
"net" "net"
"os" "os"
"os/exec" "os/exec"
"sync"
"testing" "testing"
"time" "time"
@ -19,10 +18,6 @@ import (
"github.com/hashicorp/vault/vault" "github.com/hashicorp/vault/vault"
) )
var (
testPluginImagePull sync.Once
)
type mockPlugin struct { type mockPlugin struct {
users map[string][]string users map[string][]string
CredentialsProducer CredentialsProducer
@ -119,6 +114,8 @@ func getCore(t *testing.T) (*vault.Core, net.Listener, logical.SystemView) {
return core, ln, sys 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) { func TestPlugin_Main(t *testing.T) {
if os.Getenv(pluginutil.PluginUnwrapTokenEnv) == "" { if os.Getenv(pluginutil.PluginUnwrapTokenEnv) == "" {
return return