Skip to content

Commit

Permalink
fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Oct 23, 2024
1 parent 61ae751 commit 9684e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow/cdata/cdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ func TestAsyncInterfacesSimple(t *testing.T) {
ctx := context.Background()
ch := CreateAsyncDeviceStreamHandler(ctx, 1, handler)

stream := make(chan RecordMessage, 1)
stream := make(chan RecordMessage, len(reclist))
go func() {
defer close(stream)
for _, r := range reclist {
Expand Down Expand Up @@ -1101,7 +1101,7 @@ func TestAsyncPropagateError(t *testing.T) {
ctx := context.Background()
ch := CreateAsyncDeviceStreamHandler(ctx, 1, handler)

stream := make(chan RecordMessage, 1)
stream := make(chan RecordMessage, 2)
go func() {
defer close(stream)
reclist[0].Retain()
Expand Down

0 comments on commit 9684e2e

Please sign in to comment.