@@ -44,7 +44,7 @@ def test_replay_produces_vitals(self, proc_manager, dds_env_dict, clean_recordin
4444 """Replay Service should publish t/Vitals from a recording."""
4545 # ── Phase 1: Record some data ─────────────────────────────────
4646 ps = proc_manager .start_app ("PatientSensor" )
47- wait_for_process_ready (ps , timeout_sec = 10 )
47+ wait_for_process_ready (ps , timeout_sec = 5 )
4848 assert ps .poll () is None , f"PatientSensor exited early with code { ps .returncode } "
4949
5050 rec_proc = proc_manager .start (
@@ -61,25 +61,25 @@ def test_replay_produces_vitals(self, proc_manager, dds_env_dict, clean_recordin
6161
6262 rec_proc .terminate ()
6363 try :
64- rec_proc .wait (timeout = 10 )
64+ rec_proc .wait (timeout = 5 )
6565 except Exception :
6666 rec_proc .kill ()
67- rec_proc .wait (timeout = 5 )
67+ rec_proc .wait (timeout = 3 )
6868
6969 db_file = RECORDING_DIR / "or_recording_database.dat"
7070 assert db_file .is_file (), "Recording phase failed — no database"
7171
7272 # Kill PatientSensor so the only source of data is the replay
7373 proc_manager .shutdown_all ()
74- time .sleep (1 )
74+ time .sleep (0.5 )
7575
7676 # ── Phase 2: Replay and verify data arrives ───────────────────
7777 # Start Replay Service
7878 replay_proc = proc_manager .start (
7979 [REPLAY_SERVICE , "-cfgFile" , self .REPLAY_CONFIG , "-cfgName" , "RepServCfg" ],
8080 cwd = MODULE_DIR ,
8181 )
82- wait_for_process_ready (replay_proc , timeout_sec = 10 )
82+ wait_for_process_ready (replay_proc , timeout_sec = 5 )
8383
8484 # Run a short subscriber in a subprocess to capture replayed data
8585 subscriber_script = f"""\
@@ -100,7 +100,7 @@ def test_replay_produces_vitals(self, proc_manager, dds_env_dict, clean_recordin
100100reader = dds.DataReader(subscriber, topic, dr_qos)
101101
102102collected = []
103- deadline = time.monotonic() + 15
103+ deadline = time.monotonic() + 8
104104while time.monotonic() < deadline and len(collected) < 3:
105105 for s in reader.take():
106106 if s.info.valid:
@@ -117,7 +117,7 @@ def test_replay_produces_vitals(self, proc_manager, dds_env_dict, clean_recordin
117117 cwd = MODULE_01_DIR ,
118118 capture_output = True ,
119119 text = True ,
120- timeout = 30 ,
120+ timeout = 20 ,
121121 check = False ,
122122 )
123123 assert result .returncode == 0 , (
0 commit comments