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): can not second multiple candidate per relay parent without prospective parachain #4134

Conversation

axaysagathiya
Copy link
Contributor

@axaysagathiya axaysagathiya commented Aug 20, 2024

Changes

  • 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 for 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, another test was failing, So I fixed it.

Tests

go test ./dot/parachain/backing/... -v -timeout 30s

Issues

Closes #4013

Copy link
Contributor

@kishansagathiya kishansagathiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently, he has already self reviewed so that I don't give him reviews. Smart boy!!! 🎉

@axaysagathiya axaysagathiya merged commit baea974 into feat/parachain Aug 22, 2024
22 checks passed
@axaysagathiya axaysagathiya deleted the axay/test/backing/cannot-second-multiple-candidate branch August 22, 2024 14:28
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