File tree Expand file tree Collapse file tree
src/pytest_plugins/consume/hive_simulators/engine Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77import io
88from pathlib import Path
9- from typing import Mapping
9+ from typing import Dict , Mapping
1010
1111import pytest
1212from hive .client import Client
2020TestCase = TestCaseIndexFile | TestCaseStream
2121
2222
23+ @pytest .fixture (scope = "function" )
24+ def environment (request : pytest .FixtureRequest ) -> Dict :
25+ """
26+ For the Engine API simulations, we need that the port 8551 is ready on the client's side,
27+ instead of the default 8545, because the first request is a forkchoice update.
28+
29+ We signal this to hive by adding the "HIVE_CHECK_LIVE_PORT" environment variable.
30+ """
31+ environment : Dict = request .getfixturevalue ("environment" )
32+ environment ["HIVE_CHECK_LIVE_PORT" ] = "8551"
33+ return environment
34+
35+
2336@pytest .fixture (scope = "function" )
2437def engine_rpc (client : Client ) -> EngineRPC :
2538 """Initialize engine RPC client for the execution client under test."""
You can’t perform that action at this time.
0 commit comments