tests: fix missing logger caused by bad merge

This commit is contained in:
Michael Schurter
2018-09-28 16:54:41 -07:00
parent 3b8da3065e
commit 37387bbf6f

View File

@@ -5,6 +5,7 @@ import (
consulApi "github.com/hashicorp/nomad/client/consul"
"github.com/hashicorp/nomad/client/fingerprint"
"github.com/hashicorp/nomad/command/agent/consul"
"github.com/hashicorp/nomad/helper/testlog"
"github.com/hashicorp/nomad/plugins/shared/catalog"
"github.com/hashicorp/nomad/plugins/shared/singleton"
"github.com/mitchellh/go-testing-interface"
@@ -21,6 +22,8 @@ func TestClient(t testing.T, cb func(c *config.Config)) *Client {
}
conf.Options[fingerprint.TightenNetworkTimeoutsConfig] = "true"
logger := testlog.HCLogger(t)
// Set the plugin loaders
conf.PluginLoader = catalog.TestPluginLoader(t)
conf.PluginSingletonLoader = singleton.NewSingletonLoader(logger, conf.PluginLoader)