Skip to content

Commit

Permalink
Merge pull request #1316 from mkoura/fix_test_tx_view
Browse files Browse the repository at this point in the history
Fix `test_tx_view` on master
  • Loading branch information
mkoura committed Aug 12, 2022
2 parents 244883e + d285f6c commit dd6827a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cardano_node_tests/tests/data/test_tx_metadata_both_tx.out
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ outputs:
stake reference: null
reference inputs: null
required signers (payment key hashes needed for scripts): null
return collateral: null
total collateral: null
update proposal: null
validity range:
lower bound: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ outputs:
stake reference: null
reference inputs: null
required signers (payment key hashes needed for scripts): null
return collateral: null
total collateral: null
update proposal: null
validity range:
lower bound: null
Expand Down
4 changes: 2 additions & 2 deletions cardano_node_tests/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ def test_tx_view(self, cluster: clusterlib.ClusterLib):
tx_body = cluster.view_tx(tx_body_file=self.TX_BODY_FILE)
tx = cluster.view_tx(tx_file=self.TX_FILE)

if "reference inputs:" in tx_body:
if "return collateral:" in tx_body:
with open(self.TX_BODY_OUT, encoding="utf-8") as infile:
tx_body_view_out = infile.read()
assert tx_body == tx_body_view_out.strip()

if "reference inputs:" in tx:
if "return collateral:" in tx:
with open(self.TX_OUT, encoding="utf-8") as infile:
tx_view_out = infile.read()
assert tx == tx_view_out.strip()
Expand Down

0 comments on commit dd6827a

Please sign in to comment.