fix(coderd/workspaceapps/apptest): bump sleep in testReconnectingPTY to reduce test flakes (#9875)

This commit is contained in:
Cian Johnston
2023-09-26 14:58:18 +01:00
committed by GitHub
parent b0b9d32a2a
commit 1f4335733c

View File

@ -1419,7 +1419,7 @@ func testReconnectingPTY(ctx context.Context, t *testing.T, client *codersdk.Cli
// Brief pause to reduce the likelihood that we send keystrokes while
// the shell is simultaneously sending a prompt.
time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
data, err = json.Marshal(codersdk.ReconnectingPTYRequest{
Data: "echo test\r\n",