Skip to content

clock: wait for timers under lock in TestSleep - #216

Open
team-humaki wants to merge 1 commit into
mailgun:masterfrom
team-humaki:clock-testsleep-wait4scheduled
Open

team-humaki wants to merge 1 commit into
mailgun:masterfrom
team-humaki:clock-testsleep-wait4scheduled

Conversation

@team-humaki

Copy link
Copy Markdown

The skipped TestSleep spin-looped on frozenTime.timers without the mutex while startTimer appended under it. Use Wait4Scheduled instead so the wait observes the timer list under the same lock.

Fixes #147

The skipped TestSleep spin-looped on frozenTime.timers without the mutex
while startTimer appended under it. Use Wait4Scheduled instead so the
wait observes the timer list under the same lock.

Fixes mailgun#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DATA RACE in holster/clock

1 participant