Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add full cleos return object to final test assertion #10451

Merged
merged 2 commits into from
Jun 23, 2021
Merged
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
4 changes: 3 additions & 1 deletion tests/read_only_query_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@

Print("Setting up read-only tables")
success, transaction = node.pushMessage(readtestaccount.name, 'setup', "{}", '-p readtest1111@active')
assert success, 'Creating KV tables failed\n' + str(transaction)
node.trackCmdTransaction(transaction)

Print("Querying combined kv tables")
trx = {
Expand All @@ -143,7 +145,7 @@
success, transaction = node.pushTransaction(trx, opts='--read-only --return-failure-trace', permissions=readtestaccount.name)

assert success
assert 8 == len(transaction['result']['action_traces'][0]['return_value_data']), 'Combined kv tables roqm and roqf should contain 8 rows'
assert 8 == len(transaction['result']['action_traces'][0]['return_value_data']), 'Combined kv tables roqm and roqf should contain 8 rows\n' + str(transaction)

testSuccessful=True
finally:
Expand Down