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

Problem: reopen ica account is not tested #1234

Merged
merged 10 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions integration_tests/ibc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ def check_contract_balance_change():
return amount, contract.address


def wait_for_check_channel_ready(cli, connid, channel_id):
print("wait for channel ready", channel_id)
def wait_for_check_channel_ready(cli, connid, channel_id, target="STATE_OPEN"):
print("wait for channel ready", channel_id, target)

def check_channel_ready():
channels = cli.ibc_query_channels(connid)["channels"]
Expand All @@ -589,7 +589,7 @@ def check_channel_ready():
)
except StopIteration:
return False
return state == "STATE_OPEN"
return state == target

wait_for_fn("channel ready", check_channel_ready)

Expand Down
Loading