diff --git a/integration_tests/ibc_utils.py b/integration_tests/ibc_utils.py index 49c5ccc15d..4e78f1498e 100644 --- a/integration_tests/ibc_utils.py +++ b/integration_tests/ibc_utils.py @@ -1,6 +1,7 @@ import json import os import subprocess +from enum import IntEnum from pathlib import Path from typing import NamedTuple @@ -20,7 +21,18 @@ class IBCNetwork(NamedTuple): proc: subprocess.Popen[bytes] | None -def prepare_network(tmp_path, file, incentivized=True, is_relay=True, is_hermes=True): +class Relayer(IntEnum): + (HERMES, RLY) = range(2) + + +def prepare_network( + tmp_path, + file, + incentivized=True, + is_relay=True, + relayer=Relayer.HERMES, +): + is_hermes = relayer == Relayer.HERMES file = f"configs/{file}.jsonnet" gen = setup_custom_cronos(tmp_path, 26700, Path(__file__).parent / file) cronos = next(gen) diff --git a/integration_tests/test_ibc_rly.py b/integration_tests/test_ibc_rly.py index 8ae4be3daf..d777e225d3 100644 --- a/integration_tests/test_ibc_rly.py +++ b/integration_tests/test_ibc_rly.py @@ -3,7 +3,7 @@ import pytest -from .ibc_utils import RATIO, get_balance, prepare_network, rly_transfer +from .ibc_utils import RATIO, Relayer, get_balance, prepare_network, rly_transfer from .utils import ADDRS, eth_to_bech32, wait_for_fn @@ -14,7 +14,7 @@ def ibc(request, tmp_path_factory): path = tmp_path_factory.mktemp(name) procs = [] try: - for network in prepare_network(path, name, True, True, False): + for network in prepare_network(path, name, True, True, Relayer.RLY): if network.proc: procs.append(network.proc) yield network