mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6618 from heyitsanthony/fix-e2e-err-leak
e2e: close process if spawnWithExpects fails
This commit is contained in:
commit
a7247b3c7e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user