Skip to content

Commit

Permalink
Fix data race on test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nachogiljaldo committed Jul 2, 2024
1 parent f8eddfc commit 35de2e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 35de2e9

Please sign in to comment.