From 8d82c93de03107c9cd5317296795f5e3296b5761 Mon Sep 17 00:00:00 2001 From: Gavin Frazar Date: Wed, 4 Dec 2024 15:39:02 -0800 Subject: [PATCH] disable spanner metrics in tests --- lib/srv/db/spanner/test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/srv/db/spanner/test.go b/lib/srv/db/spanner/test.go index 44b74085c05bf..5dcef45959735 100644 --- a/lib/srv/db/spanner/test.go +++ b/lib/srv/db/spanner/test.go @@ -105,7 +105,8 @@ func makeTestClient(ctx context.Context, config common.TestClientConfig, useTLS } clientCfg := spanner.ClientConfig{ - SessionPoolConfig: spanner.DefaultSessionPoolConfig, + DisableNativeMetrics: true, + SessionPoolConfig: spanner.DefaultSessionPoolConfig, } clt, err := spanner.NewClientWithConfig(ctx, databaseID, clientCfg, opts...) if err != nil {