Fixed a randomly failing integration test: test_dao_by_out_point
description: Sometimes a failure occurs when running test_dao_by_out_point, in this test case, the withdrawing cells are from different transactions.
reason: get_transactions_with_status returns the input_cells in the transaction but the order is not guaranteed to be in the order in the transaction. In this case, build_dao_claim_transaction relies on the assumption that the input_cells are in order to locate the deposit cells by withdrawing cells’ outpoint index.
refactored integration test test_simple_transfer_udt_from_provide_capacity:avoid the possibility of affecting other tests.
What this PR does / why we need it:
Fixed a randomly failing integration test:
test_dao_by_out_point
test_dao_by_out_point
, in this test case, the withdrawing cells are from different transactions.get_transactions_with_status
returns theinput_cells
in the transaction but the order is not guaranteed to be in the order in the transaction. In this case,build_dao_claim_transaction
relies on the assumption that theinput_cells
are in order to locate the deposit cells by withdrawing cells’ outpoint index.refactored integration test
test_simple_transfer_udt_from_provide_capacity
:avoid the possibility of affecting other tests.Which issue(s) this PR fixes:
Fixes #
Which docs this PR relation:
Ref #
Which toolchain this PR adaption:
No Breaking Change
Special notes for your reviewer: