From 8525f85affaf4a6b080a27c0dff11a02ab27b632 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 20 May 2024 16:56:11 +0200 Subject: [PATCH] tabletserver: fix test Signed-off-by: Vicent Marti --- go/vt/vttablet/tabletserver/tx_pool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vttablet/tabletserver/tx_pool_test.go b/go/vt/vttablet/tabletserver/tx_pool_test.go index 37500ada79a..9346aeb1503 100644 --- a/go/vt/vttablet/tabletserver/tx_pool_test.go +++ b/go/vt/vttablet/tabletserver/tx_pool_test.go @@ -216,7 +216,7 @@ func primeTxPoolWithConnection(t *testing.T, ctx context.Context) (*fakesqldb.DB db := fakesqldb.New(t) txPool, _ := newTxPool() // Set the capacity to 1 to ensure that the db connection is reused. - txPool.scp.conns.SetCapacity(1) + _ = txPool.scp.conns.SetCapacity(context.Background(), 1) params := dbconfigs.New(db.ConnParams()) txPool.Open(params, params, params)