"""342-3 B05 첫 열기 — 옛 소수 관 11개를 정수 m 로 옮겨도 세부 유역 요청은 한 번. 배수유역 판 `analyze` = `batched`(같은 틱 부름을 한 번으로) · Node 헬퍼가 TS 를 그 자리에서 돌린다. """ import json import os import subprocess HERE = os.path.dirname(os.path.abspath(__file__)) def test_burst_runs_once_then_again(): proc = subprocess.run( ["node", os.path.join(HERE, "helper_342_3_batched.cjs")], capture_output=True, text=True, timeout=60, ) assert proc.returncode == 0, proc.stderr result = json.loads(proc.stdout) assert result == {"afterBurst": 1, "samePromise": True, "afterNext": 2}