diff --git a/pytest_tests/testsuites/replication/test_ec_replication.py b/pytest_tests/testsuites/replication/test_ec_replication.py index 8e243a8..21ce932 100644 --- a/pytest_tests/testsuites/replication/test_ec_replication.py +++ b/pytest_tests/testsuites/replication/test_ec_replication.py @@ -39,7 +39,8 @@ def pytest_generate_tests(metafunc: pytest.Metafunc) -> None: 100: ["EC 12.4", "EC 8.4", "EC 5.3", "EC 4.4"], } - metafunc.parametrize("ec_policy, node_count", ((ec_policy, node_count) for ec_policy in ec_map[node_count])) + nearest_node_count = ([4] + (list(filter(lambda x: x <= node_count, ec_map.keys()))))[-1] + metafunc.parametrize("ec_policy, node_count", ((ec_policy, node_count) for ec_policy in ec_map[nearest_node_count])) @allure.title("Initialized remote FrostfsAdm")