Skip to content

Commit

Permalink
Merge pull request etcd-io#4199 from heyitsanthony/fix-recorder-datarace
Browse files Browse the repository at this point in the history
testutil: fix data race in RecorderBuffered
  • Loading branch information
Anthony Romano committed Jan 13, 2016
2 parents da9378b + 54c905f commit b83c528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/testutil/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (r *RecorderBuffered) Wait(n int) (acts []Action, err error) {
WaitSchedule()
acts = r.Action()
if len(acts) < n {
err = newLenErr(n, len(r.actions))
err = newLenErr(n, len(acts))
}
return acts, err
}
Expand Down

0 comments on commit b83c528

Please sign in to comment.