diff options
author | Kevin Krakauer <krakauer@google.com> | 2018-11-06 16:17:16 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-11-06 16:18:13 -0800 |
commit | a81111d5448346098af375de82aec44459239689 (patch) | |
tree | 11ee991906811525e755a7252d69dfa8f97c983d | |
parent | 6ae1c90b891fdefa47c9be943369a7e7bbd75907 (diff) |
Fix problem where crictl tests would signal both error and done channels
PiperOrigin-RevId: 220372291
Change-Id: I054ba56a23c402c7244b476d7d6fe72084942a0e
-rw-r--r-- | runsc/test/testutil/crictl.go | 1 |
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) }() |