Commit ca8a3da
authored
Fix flakiness in
It's possible for another sender to close the channel between
incrementing `sent` and suspending for `select`. If that happens, the
`select` just throws `CancellationException`, cancelling the coroutine
and causing an element to be missing at the end of the test.ChannelSelectStressTest. (#4481)1 parent 7a32e3e commit ca8a3da
File tree
1 file changed
+3
-0
lines changed- kotlinx-coroutines-core/jvm/test/channels
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
0 commit comments