Rob Watson cbdcef097f
All checks were successful
continuous-integration/drone/push Build is passing
Fix race condition in tests
In normal usage, the io.Writer passed to the watcher is typically
`os.Stdout` and does not require locking because it is not being read
from inside the same process.

In tests however, the io.Writer was a *bytes.Buffer which is read
concurrently from another goroutine, introducing a race condition. This
fixes the issue in the test suite by introducing a wrapper around
*bytes.Buffer which implements the required locking.
2022-07-08 19:39:10 +02:00
..
2022-06-09 20:21:07 +02:00
2022-06-09 20:21:07 +02:00
2022-07-08 19:39:10 +02:00
2022-07-08 19:39:10 +02:00
2022-07-08 19:39:10 +02:00