chore: add standard STATUS markers to worker streams and optimize test polling
This fixes the 'stuck' behavior in concurrent tests by ensuring the tests look for standard completion markers and don't wait for unnecessary timeouts.
This commit is contained in:
@@ -109,12 +109,12 @@ def test_mma_concurrent_tracks_execution(live_gui) -> None:
|
||||
# Check stream content for completion marker from our mock
|
||||
for sid, text in workers.items():
|
||||
if "ticket-A-1" in sid:
|
||||
if "Done." in text:
|
||||
if "Done." in text or "[STATUS] COMPLETED" in text:
|
||||
completed_a = True
|
||||
else:
|
||||
if i % 10 == 0: print(f"[SIM] t={i}s: Stream A: {text[:50]}...")
|
||||
if "ticket-B-1" in sid:
|
||||
if "Done." in text:
|
||||
if "Done." in text or "[STATUS] COMPLETED" in text:
|
||||
completed_b = True
|
||||
else:
|
||||
if i % 10 == 0: print(f"[SIM] t={i}s: Stream B: {text[:50]}...")
|
||||
|
||||
Reference in New Issue
Block a user