Updates test_carrier with issued_receipts

The functionality expected in the test required the issued_receipts dict to be cleare, what is normally performed by the Responder
This commit is contained in:
Sergi Delgado Segura
2020-01-31 13:05:49 +01:00
parent 1a7464f31a
commit 1f88f70c9a

View File

@@ -35,8 +35,9 @@ def test_send_double_spending_transaction(carrier):
receipt = carrier.send_transaction(tx.hex(), txid)
sent_txs.append(txid)
# Wait for a block to be mined
# Wait for a block to be mined. Issued receipts is reset from the Responder every block, so we should do it too.
generate_blocks(2)
carrier.issued_receipts = {}
# Try to send it again
receipt2 = carrier.send_transaction(tx.hex(), txid)