From 0fa268bdb4e6e70689db6f746815c30e5700b088 Mon Sep 17 00:00:00 2001 From: Huang-Ming Huang Date: Tue, 15 Dec 2020 14:20:36 -0600 Subject: [PATCH] fix balance transfer issue The test can be occasionally fail because the balance of defproducera was determined by the number of successful balance transfers in 398-426. The balance of defproducera could be accumulated up to 0.0106 CUR before considered error in line 429. Therefore, the way to make sure the transfer in line 513 to fail is to make the balance transfer amount in line 513 greater than 0.0106 CUR. --- tests/nodeos_run_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nodeos_run_test.py b/tests/nodeos_run_test.py index d66c6f07046..8700cb30980 100755 --- a/tests/nodeos_run_test.py +++ b/tests/nodeos_run_test.py @@ -508,7 +508,7 @@ contract="currency1111" action="transfer" data="{\"from\":\"defproducera\",\"to\":\"currency1111\",\"quantity\":" - data +="\"00.0051 CUR\",\"memo\":\"test\"}" + data +="\"00.0151 CUR\",\"memo\":\"test\"}" opts="--permission defproducera@active" trans=node.pushMessage(contract, action, data, opts, True) if trans is None or trans[0]: