Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.5]backport: pkg/expect: avoid hardcoding when checking ErrProcessDone
ExpectProcess's Stop method uses 'strings.Contains' to check the returned err, however, this can be avoided. os.ErrProcessDone's error message is the same as the hardcoded string. So I think this explicit error is what this method wants to compare. Signed-off-by: Jes Cok <[email protected]>
- Loading branch information