Fix problem where crictl tests would signal both error and done channels

PiperOrigin-RevId: 220372291
Change-Id: I054ba56a23c402c7244b476d7d6fe72084942a0e
This commit is contained in:
Kevin Krakauer
2018-11-06 16:18:13 -08:00
committed by Shentubot
parent 6ae1c90b89
commit a81111d544
+1
View File
@@ -212,6 +212,7 @@ func (cc *Crictl) run(args ...string) (string, error) {
output, err := cmd.CombinedOutput()
if err != nil {
errCh <- fmt.Errorf("error: \"%v\", output: %s", err, string(output))
return
}
done <- string(output)
}()