mirror of
https://github.com/abhinav/git-spice.git
synced 2026-08-31 07:47:47 +02:00
issue1079_test: fix probe text assertion
Asserting for the following newline leaves us vulnerable to a race where the probe text is printed, but the newline and bash prompt haven't.
This commit is contained in:
+1
-1
@@ -255,7 +255,7 @@ func TestIssue1079_bashPTYLosesFirstTypedByte(t *testing.T) {
|
||||
output := buffer.String()
|
||||
t.Logf("probe output:\n%s", output)
|
||||
assert.NotContains(t, output, "command not found")
|
||||
assert.Contains(t, output, probeText+"\n")
|
||||
assert.Contains(t, output, probeText)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user