mirror of https://github.com/databricks/cli.git
Fixed flaky TestBackgroundCombinedOutputFailure (#978)
## Changes `TestBackgroundCombinedOutputFailure` was occasionally failing because combined output could have been in different order, see https://github.com/databricks/cli/actions/runs/6823883271/job/18558675165?pr=928
This commit is contained in:
parent
e82a49b4e9
commit
ea4153e323
|
@ -66,7 +66,10 @@ func TestBackgroundCombinedOutputFailure(t *testing.T) {
|
|||
assert.Equal(t, "2", strings.TrimSpace(processErr.Stdout))
|
||||
}
|
||||
assert.Equal(t, "2", strings.TrimSpace(res))
|
||||
assert.Equal(t, "1\n2\n", strings.ReplaceAll(buf.String(), "\r", ""))
|
||||
|
||||
out := strings.ReplaceAll(buf.String(), "\r", "")
|
||||
assert.Contains(t, out, "1\n")
|
||||
assert.Contains(t, out, "2\n")
|
||||
}
|
||||
|
||||
func TestBackgroundNoStdin(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue