Remove the unused sync.Once object
This commit is contained in:
parent
29ae4602dc
commit
2799586f45
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue