Commit c1162bf
CAMEL-23900: Fix flaky RecipientListParallelStreamingTest
The streaming test relied on completion ordering from small delays
(100ms/500ms) that collapsed under CI thread scheduling jitter,
causing the UseLatestAggregationStrategy to pick the wrong result.
- Split single test into two isolated methods to avoid mock state
contamination via reset()
- Increase delay gaps to 500ms/2000ms (matching the pattern in
MulticastParallelStreamingTest) so completion ordering is
deterministic even on busy systems
- Replace assertMockEndpointsSatisfied() with Awaitility
await().untilAsserted() per project testing guidelines
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 56c0fb6 commit c1162bf
1 file changed
Lines changed: 12 additions & 5 deletions
File tree
- core/camel-core/src/test/java/org/apache/camel/processor
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | | - | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
40 | | - | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
52 | | - | |
53 | | - | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
0 commit comments