Commit 07234f4
test: support anchored full-message match on expected rejection (leanEthereum#1026)
Add an opt-in exact-message field to the negative-path expectation and route
all three substring matchers through one shared helper. Existing substring
vectors keep working unchanged. Opt one representative aggregated-gossip
rejection into the anchored full-message check to exercise the new path,
satisfying the repo's full-message assertion rule where a message
disambiguates a reason shared by several code paths.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 4f96b22 commit 07234f4
3 files changed
Lines changed: 43 additions & 21 deletions
File tree
- packages/testing/src/consensus_testing/test_fixtures
- tests/consensus/lstar/fork_choice
Lines changed: 38 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
61 | 98 | | |
62 | 99 | | |
63 | 100 | | |
| |||
227 | 264 | | |
228 | 265 | | |
229 | 266 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 267 | + | |
236 | 268 | | |
237 | 269 | | |
238 | 270 | | |
| |||
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 497 | + | |
504 | 498 | | |
505 | 499 | | |
506 | 500 | | |
| |||
530 | 524 | | |
531 | 525 | | |
532 | 526 | | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
540 | 530 | | |
541 | 531 | | |
542 | 532 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments