From 9ae4f0d6a593e850fcfccc6386477dddec7dabc3 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 26 Sep 2023 13:39:41 +0100 Subject: [PATCH] fix(coderd/workspaceapps/apptest): bump sleep in testReconnectingPTY to reduce test flakes --- coderd/workspaceapps/apptest/apptest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderd/workspaceapps/apptest/apptest.go b/coderd/workspaceapps/apptest/apptest.go index 38ffc56fa2c82..2c2d194749395 100644 --- a/coderd/workspaceapps/apptest/apptest.go +++ b/coderd/workspaceapps/apptest/apptest.go @@ -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",