From 465d692956bf76e18f8f612140d4c80780942b33 Mon Sep 17 00:00:00 2001 From: lash Date: Thu, 5 May 2022 15:02:21 +0000 Subject: [PATCH] Upgrade deps --- CHANGELOG | 2 ++ chaind/unittest/common.py | 6 ++++++ requirements.txt | 4 ++-- setup.cfg | 2 +- tests/test_fs.py | 7 +++++-- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index a4af308..6cf00c7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.2.10 + * Upgrade shep to guarantee state lock atomicity - 0.2.9 * Minimize instantiations of adapters in filter execution - 0.2.8 diff --git a/chaind/unittest/common.py b/chaind/unittest/common.py index ef5d5fa..39e389d 100644 --- a/chaind/unittest/common.py +++ b/chaind/unittest/common.py @@ -39,3 +39,9 @@ class MockTx: def __init__(self, tx_hash, status=TxStatus.SUCCESS): self.hash = tx_hash self.status = status + + +class MockBlock: + + def __init__(self, number): + self.number = number diff --git a/requirements.txt b/requirements.txt index ba4b39b..dfc4dc8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ chainlib~=0.1.2 -chainqueue~=0.1.12 -chainsyncer~=0.4.4 +chainqueue~=0.1.13 +chainsyncer~=0.4.5 confini~=0.6.0 funga~=0.5.2 pyxdg~=0.26 diff --git a/setup.cfg b/setup.cfg index 4a62f63..5c710af 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chaind -version = 0.2.9 +version = 0.2.10 description = Base package for chain queue service author = Louis Holbrook author_email = dev@holbrook.no diff --git a/tests/test_fs.py b/tests/test_fs.py index 68792e6..41524e5 100644 --- a/tests/test_fs.py +++ b/tests/test_fs.py @@ -14,6 +14,7 @@ from chaind.filter import StateFilter # test imports from chaind.unittest.common import ( MockTx, + MockBlock, MockCacheAdapter, MockDispatcher, ) @@ -76,7 +77,8 @@ class TestChaindFs(TestChaindFsBase): fltr = StateFilter(self.chain_spec, self.path, MockCacheAdapter) tx = MockTx(hsh) - fltr.filter(None, None, tx) + block = MockBlock(42) + fltr.filter(None, block, tx) def test_fs_filter_fail(self): @@ -87,7 +89,8 @@ class TestChaindFs(TestChaindFsBase): fltr = StateFilter(self.chain_spec, self.path, MockCacheAdapter) tx = MockTx(hsh, TxStatus.ERROR) - fltr.filter(None, None, tx) + block = MockBlock(42) + fltr.filter(None, block, tx) def test_upcoming(self):