You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix race condition in async cURL error handling test
The test was spawning three async coroutines that executed in parallel,
causing non-deterministic output order. This led to sporadic test failures
when the actual output order differed from the expected order.
Solution:
- Functions now return arrays with numbered keys (1-11) instead of echoing
- After await_all(), all outputs are merged and sorted by key (ksort)
- Output is then printed in deterministic order
This preserves the async nature of the test while ensuring stable output.
The test still validates concurrent cURL operations with proper error handling.
0 commit comments