forked from cerc-io/laconicd-deprecated
29caa1916d
* wait new blk right before send tx
* larger timeout_commit for priority test
* larger timeout_commit for mempool related test
* mv chain id test to cluster used test
* keep cluster in module scope
* sync gomod2nix
* adjust timeout_commit
* rm prune all in indexer config
* add missing min_gas_multiplier
* wait 1 more blk in upgrade
* only keep 2 validators
* add retry for grpc_eth_call
* wait 1 block before stop
* fix lint
* disable recheck
* bump up upgrade
* sync gomod2nix
* Apply suggestions from code review
* Apply suggestions from code review
* append node log
* fix lint
* expect less gas after ecd76396eb
* allow retry continue on empty rsp
* update gomod2nix
* fix flake
* mod tidy
* keep grpc only test
* tests(integration): enable recheck tx mode
* update gomod2nix
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Freddy Caceres <facs95@gmail.com>
Co-authored-by: Tom <tomasguerraalda@hotmail.com>
34 lines
825 B
Python
34 lines
825 B
Python
import pytest
|
|
|
|
from .network import setup_ethermint, setup_geth
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def ethermint(tmp_path_factory):
|
|
path = tmp_path_factory.mktemp("ethermint")
|
|
yield from setup_ethermint(path, 26650)
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def geth(tmp_path_factory):
|
|
path = tmp_path_factory.mktemp("geth")
|
|
yield from setup_geth(path, 8545)
|
|
|
|
|
|
@pytest.fixture(
|
|
scope="session", params=["ethermint", "ethermint-ws"]
|
|
)
|
|
def ethermint_rpc_ws(request, ethermint):
|
|
"""
|
|
run on both ethermint and ethermint websocket
|
|
"""
|
|
provider = request.param
|
|
if provider == "ethermint":
|
|
yield ethermint
|
|
elif provider == "ethermint-ws":
|
|
ethermint_ws = ethermint.copy()
|
|
ethermint_ws.use_websocket()
|
|
yield ethermint_ws
|
|
else:
|
|
raise NotImplementedError
|