Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(dot/parachain/backing): ensure new lead view doesn't clobber the old view #4148

Merged

Conversation

axaysagathiya
Copy link
Contributor

Changes

test that the new leaf view doesn't clobber the old view when we update active leaves.

  • update the active leaves to add relay parent 1.
  • again, update the active leaves to add relay parent 2.
  • now, we should be able to second a candidate with relay parent 1 if the old view hasn't been clobbered.

Tests

go test ./dot/parachain/... -v -timeout 1m

Issues

Closes #4014

@axaysagathiya axaysagathiya merged commit cd5a2bf into feat/parachain Aug 29, 2024
22 checks passed
@axaysagathiya axaysagathiya deleted the axay/test/backing/new-leaf-doesnt-clobber-old branch August 29, 2024 07:06
edwardmack added a commit that referenced this pull request Oct 4, 2024
test(dot/parachain/backing): can not second multiple candidate per relay parent without prospective parachain (#4134)

- I have written a test to ensure it's impossible to second multiple candidates per relay parent when prospective parachain mode is inactive(async backing is not supported).
    - received a candidate backing message to second a candidate. Ensured it seconds the candidate.
    - I received another candidate backing message to second a candidate with the same relay parent. I ensured this candidate got rejected.
- Written some helper functions to reuse the code.
- Added a function to stop the mockable overseer and wait some time to finish the ongoing process before exiting the test.
- I have added an extra check to handle expected overseer action in the mockable overseer.
- Because of this extra check, other tests failed, so I fixed them.

refactor go concurrancy

test(dot/parachain/backing): ensure new lead view doesn't clobber the old view (#4148)
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.

3 participants