Skip to content

Commit 35de2e9

Browse files
committed
Fix data race on test.
1 parent f8eddfc commit 35de2e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: reader_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,8 @@ func TestAssignmentListener(t *testing.T) {
923923
defer r.Close()
924924

925925
assert.Eventually(t, func() bool {
926+
lock.Lock()
927+
defer lock.Unlock()
926928
return reflect.DeepEqual(assignments, [][]GroupMemberTopic{
927929
{
928930
GroupMemberTopic{

0 commit comments

Comments
 (0)