Repository navigation
Commit 4308c28
authored
Cover the orphan index entry under ABCI queries too (#4695)
`TestGRPCQueryValidatorDelegationsOrphanIndexEntry`, added in #4688,
only ran in the consensus context, which pages the
delegation-by-validator index through `FilteredPaginateV66`. ABCI
queries page it through `FilteredPaginate` instead, so the check that an
index entry without its delegation returns `Internal` had no coverage on
that path.
The test now runs under both `abciQuery` values, like
`TestGRPCQueryValidatorDelegationsScanCursorAfterIndexReady` beside it.
Test-only, with no consensus or state impact. Both subtests fail with
the nil guard in `validatorDelegationsFromIndex` removed.1 parent 2949d8d commit 4308c28
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
462 | 465 | | |
463 | | - | |
464 | | - | |
465 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
466 | 471 | | |
0 commit comments