Skip to content

Commit b67f136

Browse files
committed
storage: don't import testing for DisableMetamorphicSimpleValueEncoding
We shouldn't link `testing` in binaries. Epic: none Release note: None
1 parent 5c54cd9 commit b67f136

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/storage/mvcc_value.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ package storage
1212

1313
import (
1414
"encoding/binary"
15-
"testing"
1615

1716
"github.com/cockroachdb/cockroach/pkg/roachpb"
1817
"github.com/cockroachdb/cockroach/pkg/storage/enginepb"
@@ -147,7 +146,10 @@ var disableSimpleValueEncoding = util.ConstantWithMetamorphicTestBool(
147146

148147
// DisableMetamorphicSimpleValueEncoding disables the disableSimpleValueEncoding
149148
// metamorphic bool for the duration of a test, resetting it at the end.
150-
func DisableMetamorphicSimpleValueEncoding(t testing.TB) {
149+
func DisableMetamorphicSimpleValueEncoding(t interface {
150+
Helper()
151+
Cleanup(func())
152+
}) {
151153
t.Helper()
152154
if disableSimpleValueEncoding {
153155
disableSimpleValueEncoding = false

0 commit comments

Comments
 (0)