File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments