remove racing stdout

This commit is contained in:
Cassondra Foesch 2022-01-31 21:25:18 +00:00
parent bb06e29d17
commit a61b35f5a3
1 changed files with 2 additions and 4 deletions

View File

@ -501,17 +501,15 @@ func runSftpClient(t *testing.T, script string, path string, host string, port i
return "", err
}
output := stdout.String()
if err := cmd.Wait(); err != nil {
return output, &execError{
return stdout.String(), &execError{
path: cmd.Path,
stderr: stderr.String(),
err: err,
}
}
return output, nil
return stdout.String(), nil
}
// assert.Eventually seems to have a data rate on macOS with go 1.14 so replace it with this simpler function