@@ -18,6 +18,7 @@ import (
1818
1919 "github.com/cockroachdb/cockroach/pkg/sql/inverted"
2020 "github.com/cockroachdb/cockroach/pkg/util/leaktest"
21+ "github.com/cockroachdb/cockroach/pkg/util/log"
2122 "github.com/stretchr/testify/require"
2223)
2324
@@ -89,6 +90,7 @@ func keyIndexesToString(indexes [][]KeyIndex) string {
8990
9091func TestSetContainerUnion (t * testing.T ) {
9192 defer leaktest .AfterTest (t )()
93+ defer log .Scope (t ).Close (t )
9294
9395 type testCase struct {
9496 a setContainer
@@ -111,6 +113,7 @@ func TestSetContainerUnion(t *testing.T) {
111113
112114func TestSetContainerIntersection (t * testing.T ) {
113115 defer leaktest .AfterTest (t )()
116+ defer log .Scope (t ).Close (t )
114117
115118 type testCase struct {
116119 a setContainer
@@ -139,6 +142,7 @@ type keyAndIndex struct {
139142// Tests both invertedExprEvaluator and batchedInvertedExprEvaluator.
140143func TestInvertedExpressionEvaluator (t * testing.T ) {
141144 defer leaktest .AfterTest (t )()
145+ defer log .Scope (t ).Close (t )
142146
143147 leaf1 := & spanExpression {
144148 FactoredUnionSpans : []invertedSpan {{Start : []byte ("a" ), End : []byte ("d" )}},
@@ -302,6 +306,7 @@ func TestInvertedExpressionEvaluator(t *testing.T) {
302306// overlapping spans.
303307func TestFragmentedSpans (t * testing.T ) {
304308 defer leaktest .AfterTest (t )()
309+ defer log .Scope (t ).Close (t )
305310
306311 expr1 := inverted.SpanExpressionProto {
307312 Node : spanExpression {
@@ -362,6 +367,8 @@ func (t *testPreFilterer) PreFilter(
362367
363368func TestInvertedExpressionEvaluatorPreFilter (t * testing.T ) {
364369 defer leaktest .AfterTest (t )()
370+ defer log .Scope (t ).Close (t )
371+
365372 // Setup expressions such that the same expression appears multiple times
366373 // in a span.
367374 leaf1 := & spanExpression {
0 commit comments