From 049c150884b8039b2af4db5051bfb42e56fec2d0 Mon Sep 17 00:00:00 2001 From: Jonathan Giszczak Date: Wed, 23 Jun 2021 14:20:07 -0500 Subject: [PATCH 1/2] Add full cleos return object to final test assertion --- tests/read_only_query_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/read_only_query_tests.py b/tests/read_only_query_tests.py index eaa33510d33..acd0c4e0e27 100755 --- a/tests/read_only_query_tests.py +++ b/tests/read_only_query_tests.py @@ -143,7 +143,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: From 12251381462e56df880a40ec3391322babc59a72 Mon Sep 17 00:00:00 2001 From: Jonathan Giszczak Date: Wed, 23 Jun 2021 16:20:23 -0500 Subject: [PATCH 2/2] Wait for KV tables setup transaction to complete. --- tests/read_only_query_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/read_only_query_tests.py b/tests/read_only_query_tests.py index acd0c4e0e27..b07791fda18 100755 --- a/tests/read_only_query_tests.py +++ b/tests/read_only_query_tests.py @@ -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 = {