Skip to content

Commit 7ef8d9a

Browse files
committed
check errors
1 parent 2385595 commit 7ef8d9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/logrepl/cdc_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,12 @@ func TestCDCIterator_NextN(t *testing.T) {
519519
go func() {
520520
recordsTmp, err := i.NextN(ctx, 5)
521521
if err != nil {
522-
recordsCh.Send(ctx, nil)
522+
err = recordsCh.Send(ctx, nil)
523+
is.NoErr(err)
523524
return
524525
}
525-
recordsCh.Send(ctx, recordsTmp)
526+
err = recordsCh.Send(ctx, recordsTmp)
527+
is.NoErr(err)
526528
}()
527529

528530
recordsTmp, ok, err := recordsCh.RecvTimeout(ctx, 5*time.Second)

0 commit comments

Comments
 (0)