Skip to content

Commit

Permalink
feat(tests): force mainnet_fast for reconnect test
Browse files Browse the repository at this point in the history
Added a skip condition to the `test_metrics_reconnect` test to ensure it
does not run on testnet with short epochs.
  • Loading branch information
mkoura committed Oct 30, 2024
1 parent 2884630 commit 50a97bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cardano_node_tests/tests/test_reconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ def _assert(tx_outputs: tp.List[clusterlib.TxRawOutput]) -> None:
)
@pytest.mark.skipif(configuration.NUM_POOLS != 3, reason="`NUM_POOLS` must be 3")
@pytest.mark.skipif(configuration.ENABLE_LEGACY, reason="Works only with P2P topology")
@pytest.mark.skipif(
"mainnet_fast" not in configuration.SCRIPTS_DIRNAME,
reason="Cannot run on testnet with short epochs",
)
def test_metrics_reconnect(
self,
cluster_manager: cluster_management.ClusterManager,
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_node_reconnect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TOP_DIR="$(readlink -m "${0%/*}/..")"
export \
CLUSTERS_COUNT=1 \
TEST_THREADS=0 \
SCRIPTS_DIRNAME="${SCRIPTS_DIRNAME:-mainnet_fast}" \
SCRIPTS_DIRNAME="mainnet_fast" \
PYTEST_ARGS="-s -k TestNodeReconnect"

"$TOP_DIR/.github/regression.sh"

0 comments on commit 50a97bd

Please sign in to comment.