Make TestLogsAPIStdout a bit less racey Upstream-commit: 6d92b0ee15cff0d5fade6533f696c7bc9f314021 Component: engine