Skip to content

Commit 6dbe794

Browse files
committed
wip
1 parent 6a7ce9f commit 6dbe794

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/fuzzer/fuzzer_v2.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def run_test(
121121
else get_rolling_stock(editoast_url, rolling_stock_name)
122122
)
123123
path = make_valid_path(infra)
124-
if random.randint(0, 0) == 1:
124+
if random.randint(0, 1) == 1:
125125
test_new_train(editoast_url, scenario, rolling_stock.name, infra_name, path, prelude)
126126
else:
127127
test_stdcm(editoast_url, scenario, rolling_stock.id, infra_name, path, prelude)
@@ -206,7 +206,7 @@ def make_stdcm_payload(path: List[Tuple[str, float]], rolling_stock: int) -> Dic
206206
"time_gap_after": random.randint(0, 600_000),
207207
"steps": [convert_stop_stdcm(stop) for stop in path],
208208
"comfort": "STANDARD",
209-
"margin": None,
209+
"margin": "None",
210210
}
211211
res["steps"][-1]["duration"] = 1 # Force a stop at the end
212212
allowance_value = make_random_margin_value()
@@ -622,7 +622,7 @@ def to_mm(distance: float) -> int:
622622
EDITOAST_URL,
623623
new_scenario,
624624
scenario_ttl=20,
625-
n_test=10,
625+
n_test=100,
626626
log_folder=Path(__file__).parent / "errors",
627627
infra_name=INFRA_NAME,
628628
rolling_stock_name=ROLLING_STOCK_NAME,

0 commit comments

Comments
 (0)