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

Use WaitForCondition in channel upgrade tests #7691

Open
damiannolan opened this issue Dec 16, 2024 · 1 comment
Open

Use WaitForCondition in channel upgrade tests #7691

damiannolan opened this issue Dec 16, 2024 · 1 comment
Labels
e2e nice-to-have type: code hygiene Clean up code but without changing functionality or interfaces

Comments

@damiannolan
Copy link
Contributor

In channel upgrades e2e tests we commit to send packets and begin a channel upgrades which in turn then flushes the packets, completing their lifecycle.

We then wait for some arbitrary number of blocks before querying the channel version - asserting that it has been updated after the relayer finishes the channel upgrade.

It would be more robust to use test.WaitForCondition rather than waiting arbitrary number of blocks for proceeding.

See diff and PR comments below.

Num block waited was bumped here. Without this there was an error surfacing on L129 - when querying the channel version it was not fee enabled.

This must be some latency added somewhere in tx flow from the relayer trying to complete the channel upgrade. First it flushes packets and then makes this query against channel version to ensure the upgrade has completed.

Note, this could probably be changed to use test.WaitForCondition or something similar

Originally posted by @damiannolan in #7261 (comment)

@damiannolan damiannolan added nice-to-have e2e type: code hygiene Clean up code but without changing functionality or interfaces labels Dec 16, 2024
@NisTun
Copy link
Contributor

NisTun commented Dec 23, 2024

Can I handle this test @damiannolan ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e nice-to-have type: code hygiene Clean up code but without changing functionality or interfaces
Projects
None yet
Development

No branches or pull requests

2 participants