diff --git a/reader_test.go b/reader_test.go index 47893907..6e97026a 100644 --- a/reader_test.go +++ b/reader_test.go @@ -923,6 +923,8 @@ func TestAssignmentListener(t *testing.T) { defer r.Close() assert.Eventually(t, func() bool { + lock.Lock() + defer lock.Unlock() return reflect.DeepEqual(assignments, [][]GroupMemberTopic{ { GroupMemberTopic{