From 622def8bcf6d82583aa6a3f53a9bbc8b6dc907ff Mon Sep 17 00:00:00 2001 From: James Rasell Date: Wed, 6 Aug 2025 11:20:28 +0200 Subject: [PATCH] test: Ensure client rpclogger is set on RPC only client. (#26443) If a test encounters an RPC error using the test client, it will panic as the rpc logger is not set when it attempts to log the error. --- client/testing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/testing.go b/client/testing.go index 8e9e9df1b..c2603cb0f 100644 --- a/client/testing.go +++ b/client/testing.go @@ -107,6 +107,7 @@ func TestRPCOnlyClient(t testing.TB, cb func(c *config.Config), srvAddr net.Addr client := &Client{ config: conf, logger: testLogger, + rpcLogger: testLogger.Named("rpc"), shutdownCh: make(chan struct{}), EnterpriseClient: newEnterpriseClient(testLogger), }