From a81111d5448346098af375de82aec44459239689 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Tue, 6 Nov 2018 16:17:16 -0800 Subject: Fix problem where crictl tests would signal both error and done channels PiperOrigin-RevId: 220372291 Change-Id: I054ba56a23c402c7244b476d7d6fe72084942a0e --- runsc/test/testutil/crictl.go | 1 + 1 file changed, 1 insertion(+) (limited to 'runsc') 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) }() -- cgit v1.2.3