From ce625c5e29d3ed1922e9e48a13dcc61a6728bbee Mon Sep 17 00:00:00 2001 From: Michael Erickson Date: Fri, 7 Jul 2023 22:39:20 +0000 Subject: [PATCH] colexecutils: close SpillingBuffer during TestSpillingBuffer Fixes: #106119 Release note: None --- pkg/sql/colexec/colexecutils/spilling_buffer_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/sql/colexec/colexecutils/spilling_buffer_test.go b/pkg/sql/colexec/colexecutils/spilling_buffer_test.go index 07cc0978ce43..3488ff82fcbc 100644 --- a/pkg/sql/colexec/colexecutils/spilling_buffer_test.go +++ b/pkg/sql/colexec/colexecutils/spilling_buffer_test.go @@ -122,6 +122,7 @@ func TestSpillingBuffer(t *testing.T) { spillingQueueUnlimitedAllocator, memoryLimit, queueCfg, colexecop.NewTestingSemaphore(2), typs, testDiskAcc, testMemAcc, colsToStore..., ) + defer buf.Close(ctx) if setInMemTuplesLimit { buf.testingKnobs.maxTuplesStoredInMemory = numBatches * inputBatchSize / 2 }