fix: Increase ptytest buffer to resolve flake (#1141)

From investigating the following run:
https://github.com/coder/coder/runs/6156348454?check_suite_focus=true

It's believed that the cause is data being discarded due to the buffer
filling up. This _might_ fix it, but not entirely sure.
This commit is contained in:
Kyle Carberry
2022-04-25 12:14:16 -05:00
committed by GitHub
parent 66d45f391e
commit 185d97a65b
2 changed files with 20 additions and 0 deletions
+5
View File
@@ -76,6 +76,11 @@ func TestAgent(t *testing.T) {
session.Stdin = ptty.Input()
err = session.Start(command)
require.NoError(t, err)
caret := "$"
if runtime.GOOS == "windows" {
caret = ">"
}
ptty.ExpectMatch(caret)
ptty.WriteLine("echo test")
ptty.ExpectMatch("test")
ptty.WriteLine("exit")