From 1f88f70c9a37d3e10610af919980fe1981e4fef8 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Fri, 31 Jan 2020 13:05:49 +0100 Subject: [PATCH] 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 --- test/pisa/unit/test_carrier.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/pisa/unit/test_carrier.py b/test/pisa/unit/test_carrier.py index fe9540a..6cdfdae 100644 --- a/test/pisa/unit/test_carrier.py +++ b/test/pisa/unit/test_carrier.py @@ -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)