Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Oct 20, 2023
1 parent 36dc159 commit 3b98499
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/namada.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,10 @@ jobs:
- name: Run test
run: |
e2e/namada-e2e-test namada
- name: Upload e2e logs
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: ibc_e2e_log
path: e2e/ibc_e2e.log
retention-days: 5
8 changes: 6 additions & 2 deletions e2e/e2e/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ def args(self) -> List[str]:
return args

def process(self, result: Any) -> TxPacketSendRes:
entry = find_entry(result, 'event')
return from_dict(TxPacketSendRes, entry['SendPacket'])
for entry in result:
if 'event' in entry and 'SendPacket' in entry['event']:
event = entry['event']
return from_dict(TxPacketSendRes, event['SendPacket'])
l.error(f'No SendPacket event')
exit(1)

# -----------------------------------------------------------------------------

Expand Down

0 comments on commit 3b98499

Please sign in to comment.