Skip to content

Commit

Permalink
Merge pull request #5637 from planetscale/ss-fix-test-panic
Browse files Browse the repository at this point in the history
tests: fix panic in vstreamer_test
  • Loading branch information
sougou authored Jan 1, 2020
2 parents 5a9da55 + 079ec56 commit 65b21d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/vt/vttablet/tabletserver/vstreamer/vstreamer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1170,9 +1170,7 @@ func startStream(ctx context.Context, t *testing.T, filter *binlogdatapb.Filter,
ch := make(chan []*binlogdatapb.VEvent)
go func() {
defer close(ch)
if err := vstream(ctx, t, position, filter, ch); err != nil {
t.Error(err)
}
_ = vstream(ctx, t, position, filter, ch)
}()
return ch
}
Expand Down

0 comments on commit 65b21d8

Please sign in to comment.