From 5fb7cd2b4d9eb9c9303c6b2b93037b260b9727eb Mon Sep 17 00:00:00 2001 From: Marcelo Diop-Gonzalez Date: Mon, 20 Nov 2023 10:07:43 -0500 Subject: [PATCH] fix(pytest): fix rpc_tx_submission.py (#10219) https://github.com/near/nearcore/pull/9596 removed an RPC Method and altered this test, but the previous version of the test sends 3 transfer txs with amounts 100, 101 and 102, and now the test only sends 2 transfer txs with amounts 100 and 101. So update the expected balance changes to reflect that --- pytest/tests/sanity/rpc_tx_submission.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest/tests/sanity/rpc_tx_submission.py b/pytest/tests/sanity/rpc_tx_submission.py index 4b1f4df7c4a..411f9a662c1 100755 --- a/pytest/tests/sanity/rpc_tx_submission.py +++ b/pytest/tests/sanity/rpc_tx_submission.py @@ -45,8 +45,8 @@ int(nodes[0].get_account("test%s" % x)['result']['amount']) for x in [0, 1] ] logger.info(f"BALANCES AFTER {new_balances}") -assert new_balances[0] == old_balances[0] - 303 -assert new_balances[1] == old_balances[1] + 303 +assert new_balances[0] == old_balances[0] - 201 +assert new_balances[1] == old_balances[1] + 201 status = nodes[0].get_status() hash_ = status['sync_info']['latest_block_hash']