Skip to content

Commit 2f0fded

Browse files
committed
fix test
1 parent c78183f commit 2f0fded

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/topic/topicreaderinternal/reader_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ func TestReader_Close(t *testing.T) {
6969
readerReadMessageBatchState := newCallState()
7070

7171
go func() {
72-
readerCommitState.err = reader.Commit(context.Background(), &PublicMessage{})
72+
readerCommitState.err = reader.Commit(context.Background(), &PublicMessage{
73+
commitRange: commitRange{
74+
partitionSession: &partitionSession{},
75+
},
76+
})
7377
close(readerCommitState.callCompleted)
7478
}()
7579

0 commit comments

Comments
 (0)