Skip to content

test(app): fix flaky validator cache wiring test#556

Open
iamquang95 wants to merge 1 commit into
mainfrom
feat/investigate-flanky
Open

test(app): fix flaky validator cache wiring test#556
iamquang95 wants to merge 1 commit into
mainfrom
feat/investigate-flanky

Conversation

@iamquang95

Copy link
Copy Markdown
Collaborator

Problem

wiring_seeds_shared_validator_cache was flaky because its mock served validator data only for the head state.

The scheduler immediately refreshes the shared cache using a numeric slot. BeaconMock returned an empty validator set for that request, which could overwrite the seeded cache before the assertion ran.

Fix

Serve filtered validator data for all state IDs, covering both head and slot requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flaky test: wiring_seeds_shared_validator_cache races the background cache refresher

2 participants