@@ -20,7 +20,6 @@ import (
2020
2121 "github.com/cockroachdb/cockroach/pkg/base"
2222 "github.com/cockroachdb/cockroach/pkg/keys"
23- "github.com/cockroachdb/cockroach/pkg/kv"
2423 "github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord"
2524 "github.com/cockroachdb/cockroach/pkg/kv/kvpb"
2625 "github.com/cockroachdb/cockroach/pkg/kv/kvserver"
@@ -1212,7 +1211,7 @@ func TestNonRetryableError(t *testing.T) {
12121211 cleanupFilter := cmdFilters .AppendFilter (
12131212 func (args kvserverbase.FilterArgs ) * kvpb.Error {
12141213 if req , ok := args .Req .(* kvpb.GetRequest ); ok {
1215- if bytes .Contains (req .Key , testKey ) && ! kv . TestingIsRangeLookupRequest ( req ) {
1214+ if bytes .Contains (req .Key , testKey ) {
12161215 hitError = true
12171216 return kvpb .NewErrorWithTxn (fmt .Errorf ("testError" ), args .Hdr .Txn )
12181217 }
@@ -1260,7 +1259,7 @@ func TestReacquireLeaseOnRestart(t *testing.T) {
12601259 ) * kvpb.Error {
12611260 for _ , ru := range ba .Requests {
12621261 if req := ru .GetGet (); req != nil {
1263- if bytes .Contains (req .Key , testKey ) && ! kv . TestingIsRangeLookupRequest ( req ) {
1262+ if bytes .Contains (req .Key , testKey ) {
12641263 if atomic .LoadInt32 (& clockUpdate ) == 0 {
12651264 atomic .AddInt32 (& clockUpdate , 1 )
12661265 // Hack to advance the transaction timestamp on a
@@ -1358,7 +1357,7 @@ func TestFlushUncommittedDescriptorCacheOnRestart(t *testing.T) {
13581357 }
13591358
13601359 if req , ok := args .Req .(* kvpb.GetRequest ); ok {
1361- if bytes .Contains (req .Key , testKey ) && ! kv . TestingIsRangeLookupRequest ( req ) {
1360+ if bytes .Contains (req .Key , testKey ) {
13621361 atomic .AddInt32 (& restartDone , 1 )
13631362 // Return ReadWithinUncertaintyIntervalError.
13641363 txn := args .Hdr .Txn
0 commit comments