summaryrefslogtreecommitdiffhomepage
path: root/runsc/test
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2018-11-06 16:17:16 -0800
committerShentubot <shentubot@google.com>2018-11-06 16:18:13 -0800
commita81111d5448346098af375de82aec44459239689 (patch)
tree11ee991906811525e755a7252d69dfa8f97c983d /runsc/test
parent6ae1c90b891fdefa47c9be943369a7e7bbd75907 (diff)
Fix problem where crictl tests would signal both error and done channels
PiperOrigin-RevId: 220372291 Change-Id: I054ba56a23c402c7244b476d7d6fe72084942a0e
Diffstat (limited to 'runsc/test')
-rw-r--r--runsc/test/testutil/crictl.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/runsc/test/testutil/crictl.go b/runsc/test/testutil/crictl.go
index 9740ea6b5..4f82e8234 100644
--- a/runsc/test/testutil/crictl.go
+++ b/runsc/test/testutil/crictl.go
@@ -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)
}()