Skip to content

Commit

Permalink
tests: adapt config write test to disable a chain
Browse files Browse the repository at this point in the history
  • Loading branch information
bilbeyt authored and fredo committed Aug 11, 2023
1 parent 698b756 commit 4234c83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions beamer/tests/config/test_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ def test_config_write_request_manager(deployment_objects, deployer):
assert request_manager.tokens(token_address).transferLimit == 0
assert request_manager.tokens(token_address).ethInToken == 0

# Removal of a chain
current = desired.to_config(ape.chain.blocks[-1].number)
del desired.request_manager.chains[1]

_write_config_state(rpc_file, artifact, deployer, current, desired)
assert request_manager.chains(1).finalityPeriod == 0
assert request_manager.chains(1).targetWeightPPM == 0
assert request_manager.chains(1).transferCost == 0


def test_config_write_fill_manager(deployment_objects, deployer):
rpc_file, artifact, deployment = deployment_objects
Expand Down

0 comments on commit 4234c83

Please sign in to comment.