Fix concurrent writes to stdout in tests. by trulede · Pull Request #2350 · go-task/task

Writes to stdout from deps are occasionally "mixed up" because of stdout buffering. To prevent this, the entire grouped output is written with one call to gw.buffer.WriteString() rather than the previous two calls.

Additionally, to reduce flaky tests, use a SyncBuffer which prevents interleaving of stdout/err (typically from deps which run in parallel).

fixes #2349
fixes #1208