mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
tests: fix missing logger caused by bad merge
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user