Skip to content

Commit

Permalink
fixup! 1
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushshah15 committed Sep 26, 2022
1 parent 533d511 commit 7a624e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/kv/kvclient/kvcoord/dist_sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1040,14 +1040,15 @@ func TestDistSenderIgnoresNLHEBasedOnOldRangeGeneration(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)
tracer := tracing.NewTracer()
ctx, finishAndGetRecording := tracing.ContextWithRecordingSpan(
ctx, getRecording, cancel := tracing.ContextWithRecordingSpan(
context.Background(), tracer, "test",
)
defer cancel()
stopper := stop.NewStopper()
defer stopper.Stop(ctx)

clock := hlc.NewClock(hlc.UnixNano, time.Nanosecond)
rpcContext := rpc.NewInsecureTestingContext(ctx, clock, stopper)
rpcContext := rpc.NewInsecureTestingContext(clock, stopper)
g := makeGossip(t, stopper, rpcContext)
for _, n := range testUserRangeDescriptor3Replicas.Replicas().VoterDescriptors() {
require.NoError(t, g.AddInfoProto(
Expand Down Expand Up @@ -1135,7 +1136,7 @@ func TestDistSenderIgnoresNLHEBasedOnOldRangeGeneration(t *testing.T) {
require.Regexp(
t,
"backing off due to .* stale info",
finishAndGetRecording().String(),
getRecording().String(),
)
}

Expand Down

0 comments on commit 7a624e5

Please sign in to comment.