diff --git a/e2e/etcd_test.go b/e2e/etcd_test.go index b7abe6918..c7065d382 100644 --- a/e2e/etcd_test.go +++ b/e2e/etcd_test.go @@ -510,6 +510,7 @@ func spawnWithExpects(args []string, xs ...string) error { for { l, err := proc.ExpectFunc(lineFunc) if err != nil { + proc.Close() return fmt.Errorf("%v (expected %q, got %q)", err, txt, lines) } lines = append(lines, l)