Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
59686: kvserver: improve test output r=andreimatei a=andreimatei

Replace some goobly gook with a diff.

Release note: None

Co-authored-by: Andrei Matei <[email protected]>
  • Loading branch information
craig[bot] and andreimatei committed Feb 2, 2021
2 parents a0236ac + aafc122 commit 9b25d4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/kv/kvserver/replica_rangefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func TestReplicaRangefeed(t *testing.T) {

checkForExpEvents := func(expEvents []*roachpb.RangeFeedEvent) {
t.Helper()
for i, stream := range streams {
for _, stream := range streams {
var events []*roachpb.RangeFeedEvent
testutils.SucceedsSoon(t, func() error {
if len(streamErrC) > 0 {
Expand All @@ -176,9 +176,7 @@ func TestReplicaRangefeed(t *testing.T) {
if len(streamErrC) > 0 {
t.Fatalf("unexpected error from stream: %v", <-streamErrC)
}
if !reflect.DeepEqual(events, expEvents) {
t.Fatalf("incorrect events on stream %d, found %v, want %v", i, events, expEvents)
}
require.Equal(t, expEvents, events)
}
}

Expand Down

0 comments on commit 9b25d4e

Please sign in to comment.