Commit 08f1eb0
authored
Fix stress test expectation and bug in ColdTestPublisher (#3700)
This PR fixes an early termination bug in `ColdTestPublisher` which
happens when request from the downstream subscriber races with new
values and following termination which in rare case ends up in
termination without propagation of the remaining values. Also this PR
improves expectation for the stress test where ColdTestPulisher takes a
key role.
closes #3633
---------
Signed-off-by: Oleh Dokuka <[email protected]>1 parent 175dce4 commit 08f1eb0
File tree
2 files changed
+16
-6
lines changed- reactor-core/src/jcstress/java/reactor/core/publisher
- reactor-test/src/main/java/reactor/test/publisher
2 files changed
+16
-6
lines changedLines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
318 | 327 | | |
319 | 328 | | |
320 | 329 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
318 | | - | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
0 commit comments