mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 20:54:20 +01:00
check io.Copy errors in test/e2e/utils.go (#136)
This commit is contained in:
@@ -75,12 +75,16 @@ func runCommand(name string, arg ...string) (string, error) {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
io.Copy(output, stdout)
|
if _, err := io.Copy(output, stdout); err != nil {
|
||||||
|
fmt.Fprintf(errb, "error reading stdout: %s", err)
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
io.Copy(errorb, stderr)
|
if _, err := io.Copy(errorb, stderr); err != nil {
|
||||||
|
fmt.Fprintf(errb, "error reading stderr: %s", err)
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|||||||
Reference in New Issue
Block a user