mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
test: ensure RPC only test client sets enterprise specific config. (#24376)
This commit is contained in:
@@ -101,7 +101,15 @@ func TestRPCOnlyClient(t testing.T, cb func(c *config.Config), srvAddr net.Addr,
|
||||
cb(conf)
|
||||
}
|
||||
|
||||
client := &Client{config: conf, logger: testlog.HCLogger(t), shutdownCh: make(chan struct{})}
|
||||
testLogger := testlog.HCLogger(t)
|
||||
|
||||
client := &Client{
|
||||
config: conf,
|
||||
logger: testLogger,
|
||||
shutdownCh: make(chan struct{}),
|
||||
EnterpriseClient: newEnterpriseClient(testLogger),
|
||||
}
|
||||
|
||||
client.servers = servers.New(client.logger, client.shutdownCh, client)
|
||||
client.registeredCh = make(chan struct{})
|
||||
client.rpcServer = rpc.NewServer()
|
||||
|
||||
Reference in New Issue
Block a user