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

Make E2E test fails as soon as a CCTX is finalized with a wrong status #3544

Open
lumtis opened this issue Feb 18, 2025 · 0 comments
Open

Make E2E test fails as soon as a CCTX is finalized with a wrong status #3544

lumtis opened this issue Feb 18, 2025 · 0 comments
Labels
E2E E2E tests related

Comments

@lumtis
Copy link
Member

lumtis commented Feb 18, 2025

In the E2E tests we use these functions in several places:

WaitCctxRevertedByInboundHash
WaitCctxAbortedByInboundHash
WaitForSpecificCCTX

The issues is that hese functions don't fail when the cctx is finalized with the wrong status (aborted instead of reverted for example) then you need to wait for the timeout and this make the test longer to fail

We should refactor these functions to fail immediately in case of wrong status or use waitForMinedCCTXFromIndex and manually check the status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E E2E tests related
Projects
None yet
Development

No branches or pull requests

1 participant