Skip to content

Commit

Permalink
colexecutils: close SpillingBuffer during TestSpillingBuffer
Browse files Browse the repository at this point in the history
Fixes: #106119

Release note: None
  • Loading branch information
michae2 committed Jul 7, 2023
1 parent 7d91b44 commit ce625c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sql/colexec/colexecutils/spilling_buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ce625c5

Please sign in to comment.