Skip to content

Commit 3c74b03

Browse files
committed
ruff small fix
1 parent 484c3a2 commit 3c74b03

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/system/test_sys_ev_inj_lb_two_servers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
CPU(1 ms) → RAM(64 MB) → IO(10 ms)
88
99
Edges (baseline):
10-
exponential latency ~ 23 ms per hop.
10+
exponential latency ~ 2-3 ms per hop.
1111
1212
Events injected:
1313
- NETWORK_SPIKE on edge 'lb-srv-1': +50 ms, t ∈ [2.0, 12.0] s
@@ -54,7 +54,7 @@
5454

5555
SEED = 7778
5656
# LB re-routing and stochasticity can raise throughput
57-
REL_TOL_TPUT_UPPER = 0.15 # allow up to +15% increase;
57+
REL_TOL_TPUT_UPPER = 0.15 # allow up to +15% increase;
5858
REL_TOL_TPUT_LOWER = 0.30 # must keep at least 30% throughput
5959

6060

@@ -65,7 +65,7 @@ def _seed_all(seed: int = SEED) -> None:
6565
os.environ["PYTHONHASHSEED"] = str(seed)
6666

6767

68-
def _build_payload(*, with_events: bool) -> "SimulationPayload":
68+
def _build_payload(*, with_events: bool) -> SimulationPayload:
6969
"""Build payload for client + LB + two servers; optionally add events."""
7070
# Workload: ~26.7 rps (80 users * 20 rpm / 60).
7171
gen = RqsGenerator(
@@ -180,7 +180,7 @@ def _build_payload(*, with_events: bool) -> "SimulationPayload":
180180
return flow.build_payload()
181181

182182

183-
def _run(payload: "SimulationPayload") -> "ResultsAnalyzer":
183+
def _run(payload: SimulationPayload) -> ResultsAnalyzer:
184184
"""Run one simulation and return the analyzer."""
185185
env = simpy.Environment()
186186
runner = SimulationRunner(env=env, simulation_input=payload)

tests/system/test_sys_ev_inj_single_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
SEED = 4240
5959
REL_TOL_TPUT = 0.20 # throughput should be within ±20%
60-
60+
6161

6262
def _seed_all(seed: int = SEED) -> None:
6363
"""Seed Python, NumPy, and hashing for reproducibility."""

0 commit comments

Comments
 (0)