From a91af53b9939388390daf9e1eff990bce6945ac2 Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 27 Aug 2021 09:43:40 +0200 Subject: [PATCH] Update chainqueue tx-cache requirement of otx block number match --- apps/cic-eth/tests/task/test_task_list.py | 1 + apps/cic-eth/tests/unit/db/test_tx.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cic-eth/tests/task/test_task_list.py b/apps/cic-eth/tests/task/test_task_list.py index 93983476..0c811fcf 100644 --- a/apps/cic-eth/tests/task/test_task_list.py +++ b/apps/cic-eth/tests/task/test_task_list.py @@ -51,6 +51,7 @@ def test_ext_tx_collate( tx_hash_hex, tx_signed_raw_hex, ) + otx.block = 666 init_database.add(otx) init_database.commit() diff --git a/apps/cic-eth/tests/unit/db/test_tx.py b/apps/cic-eth/tests/unit/db/test_tx.py index 2cc54e73..a7e74e27 100644 --- a/apps/cic-eth/tests/unit/db/test_tx.py +++ b/apps/cic-eth/tests/unit/db/test_tx.py @@ -46,6 +46,7 @@ def test_set( tx_hash_hex, tx_signed_raw_hex, ) + otx.block = 666 init_database.add(otx) init_database.commit() @@ -74,7 +75,6 @@ def test_set( assert (tx_stored.destination_token_address == ZERO_ADDRESS) assert (tx_stored.from_value == tx['value']) assert (tx_stored.to_value == to_value) - assert (tx_stored.block_number == 666) assert (tx_stored.tx_index == 13)