test: ensure RPC only test client sets enterprise specific config. (#24376)

This commit is contained in:
James Rasell
2024-11-06 13:43:25 +00:00
committed by GitHub
parent b4c397e8e4
commit c44f933aeb

View File

@@ -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()