Skip to content

Commit bd6ef67

Browse files
committed
Fix test
1 parent ca85ff9 commit bd6ef67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit_tests/test_types.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@ def test_runtime_cache():
7272
# cache does not yet know that new_fake_block has the same runtime
7373
assert runtime_cache.retrieve(new_fake_block) is None
7474
assert (
75-
runtime_cache.retrieve(new_fake_block, runtime_version=fake_version) is not None
75+
runtime_cache.retrieve(
76+
new_fake_block, new_fake_hash, runtime_version=fake_version
77+
)
78+
is not None
7679
)
7780
# after checking the runtime with the new block, it now knows this runtime should also map to this block
7881
assert runtime_cache.retrieve(new_fake_block) is not None
7982
assert runtime_cache.retrieve(newer_fake_block) is None
8083
assert runtime_cache.retrieve(newer_fake_block, fake_hash) is not None
8184
assert runtime_cache.retrieve(newer_fake_block) is not None
82-
assert runtime_cache.retrieve(block_hash=new_fake_hash) is None
8385
assert runtime_cache.retrieve(fake_block, block_hash=new_fake_hash) is not None
8486
assert runtime_cache.retrieve(block_hash=new_fake_hash) is not None

0 commit comments

Comments
 (0)