refactor(sdm): Global pass with refined 'External Only' SDM tags. Pruned redundant internal references and fixed indentation logic in injector. Verified full project compilation.
This commit is contained in:
@@ -10,7 +10,10 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "s
|
||||
from src import api_hook_client
|
||||
|
||||
def _poll_mma_status(client, timeout, condition, label):
|
||||
"""Poll get_mma_status() until condition(status) is True or timeout."""
|
||||
"""
|
||||
Poll get_mma_status() until condition(status) is True or timeout.
|
||||
[C: tests/test_mma_step_mode_sim.py:test_mma_step_mode_approval_flow]
|
||||
"""
|
||||
last_status = {}
|
||||
for i in range(timeout):
|
||||
status = client.get_mma_status() or {}
|
||||
@@ -24,9 +27,10 @@ def _poll_mma_status(client, timeout, condition, label):
|
||||
@pytest.mark.timeout(300)
|
||||
def test_mma_concurrent_tracks_execution(live_gui) -> None:
|
||||
"""
|
||||
Stress test for concurrent MMA track execution.
|
||||
Verifies that starting multiple tracks simultaneously doesn't cause crashes
|
||||
and that workers from both tracks are processed.
|
||||
|
||||
Stress test for concurrent MMA track execution.
|
||||
Verifies that starting multiple tracks simultaneously doesn't cause crashes
|
||||
and that workers from both tracks are processed.
|
||||
"""
|
||||
client = api_hook_client.ApiHookClient()
|
||||
assert client.wait_for_server(timeout=15), "Hook server did not start"
|
||||
@@ -132,4 +136,4 @@ def test_mma_concurrent_tracks_execution(live_gui) -> None:
|
||||
assert status is not None
|
||||
assert status.get('mma_status') in ['done', 'idle', 'running']
|
||||
|
||||
print("[SIM] Concurrent MMA tracks stress test PASSED.")
|
||||
print("[SIM] Concurrent MMA tracks stress test PASSED.")
|
||||
Reference in New Issue
Block a user