Merge pull request #10368 from johncming/blankline

pkg/testutil: add blankline between two functions
release-3.4
Xiang Li 2019-01-03 20:58:07 -08:00 committed by GitHub
commit fde617d2dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ func (r *RecorderBuffered) Record(a Action) {
r.actions = append(r.actions, a)
r.Unlock()
}
func (r *RecorderBuffered) Action() []Action {
r.Lock()
cpy := make([]Action, len(r.actions))
@ -56,6 +57,7 @@ func (r *RecorderBuffered) Action() []Action {
r.Unlock()
return cpy
}
func (r *RecorderBuffered) Wait(n int) (acts []Action, err error) {
// legacy racey behavior
WaitSchedule()