Commit 4104c99
committed
Fix a slight race in a ticker test.
This is an incredibly unlikely race, but it shows up when running the
test 30k+ times on my system. The problem is that it's possible for:
* the fake clock to unblock the ticker
* the test attempt to read from the channel before the ticker sends
This is more likely in the new implementation than the old
implementation before there is slightly more logic between the next
tick reception and the tick send.1 parent 06008c2 commit 4104c99
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments