From ca04e769c460f78c5b1b20194efe68372b9f5706 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 16 May 2024 09:34:56 +0000 Subject: [PATCH] Update integration_tests/test_chain_id.py --- integration_tests/test_chain_id.py | 35 ------------------------------ 1 file changed, 35 deletions(-) delete mode 100644 integration_tests/test_chain_id.py diff --git a/integration_tests/test_chain_id.py b/integration_tests/test_chain_id.py deleted file mode 100644 index c704a3b65c..0000000000 --- a/integration_tests/test_chain_id.py +++ /dev/null @@ -1,35 +0,0 @@ -import json - -import pytest -from pystarport import ports - -from .utils import wait_for_block, wait_for_port - - -def test_config_client_id(cronos): - n0 = "cronos_777-1-node0" - p0 = cronos.base_port(0) - w3 = cronos.w3 - cronos.supervisorctl("stop", n0) - cli = cronos.cosmos_cli(0) - dir = cli.data_dir / "config" - - def assert_chain_id(chain_id, timeout=None): - genesis_cfg = dir / "genesis.json" - genesis = json.loads(genesis_cfg.read_text()) - genesis["chain_id"] = f"cronos_{chain_id}-1" - genesis_cfg.write_text(json.dumps(genesis)) - cronos.supervisorctl("start", n0) - wait_for_port(ports.evmrpc_port(p0)) - assert w3.eth.chain_id == chain_id - height = w3.eth.get_block_number() + 2 - # check CONSENSUS FAILURE - if timeout is None: - wait_for_block(cli, height) - else: - with pytest.raises(TimeoutError): - wait_for_block(cli, height, timeout) - - assert_chain_id(776, 5) - cronos.supervisorctl("stop", n0) - assert_chain_id(777)