File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
def test_env_vars (monkeypatch ):
5
- monkeypatch .setenv ("SUBSTRATE_CACHE_METHOD_SIZE" , 10 )
6
- monkeypatch .setenv ("SUBSTRATE_RUNTIME_CACHE_SIZE" , 9 )
5
+ monkeypatch .setenv ("SUBSTRATE_CACHE_METHOD_SIZE" , "10" )
6
+ monkeypatch .setenv ("SUBSTRATE_RUNTIME_CACHE_SIZE" , "9" )
7
7
async_substrate = import_fresh ("async_substrate_interface.async_substrate" )
8
8
asi = async_substrate .AsyncSubstrateInterface ("" , _mock = True )
9
9
assert asi .get_runtime_for_version ._max_size == 9
Original file line number Diff line number Diff line change 2
2
3
3
4
4
def test_env_vars (monkeypatch ):
5
- monkeypatch .setenv ("SUBSTRATE_CACHE_METHOD_SIZE" , 10 )
6
- monkeypatch .setenv ("SUBSTRATE_RUNTIME_CACHE_SIZE" , 9 )
5
+ monkeypatch .setenv ("SUBSTRATE_CACHE_METHOD_SIZE" , "10" )
6
+ monkeypatch .setenv ("SUBSTRATE_RUNTIME_CACHE_SIZE" , "9" )
7
7
sync_substrate = import_fresh ("async_substrate_interface.sync_substrate" )
8
8
asi = sync_substrate .SubstrateInterface ("" , _mock = True )
9
9
assert asi .get_runtime_for_version .cache_parameters ()["maxsize" ] == 9
You can’t perform that action at this time.
0 commit comments