Skip to content

Commit

Permalink
fix resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Nov 13, 2023
1 parent 4a759c3 commit b738766
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions integration_tests/test_ica_precompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,14 @@ def wait_for_status_change(tcontract, channel_id, seq):

def check_status():
status = tcontract.caller.getStatus(channel_id, seq)
print("current", status)
return status

wait_for_fn("current status", check_status)


def wait_for_packet_log(event, channel_id, seq, status):
print("wait for log arrive", seq, status)
expected = AttributeDict({"channel_id": channel_id, "seq": seq, "status": status})
expected = AttributeDict({"packetSrcChannel": channel_id, "seq": seq, "status": status})

Check failure on line 184 in integration_tests/test_ica_precompile.py

View workflow job for this annotation

GitHub Actions / Lint python

./integration_tests/test_ica_precompile.py:184:30: BLK100 Black would make changes.

Check failure on line 184 in integration_tests/test_ica_precompile.py

View workflow job for this annotation

GitHub Actions / Lint python

./integration_tests/test_ica_precompile.py:184:89: E501 line too long (92 > 88 characters)

def check_log():
logs = event.getLogs()
Expand Down Expand Up @@ -355,7 +354,7 @@ def submit_msgs_ro(func, str):
)
last_seq = tcontract.caller.getLastSeq()
wait_for_status_change(tcontract, last_seq)
status = tcontract.caller.statusMap(last_seq)
status = tcontract.caller.getStatus(channel_id2, last_seq)
assert expected_seq == last_seq
assert status == Status.SUCCESS
# wait for ack to add log from call evm
Expand Down

0 comments on commit b738766

Please sign in to comment.