From e2149e9e8309bfb9f60f20ae645a4985ec289ac9 Mon Sep 17 00:00:00 2001 From: Spike Curtis Date: Thu, 22 Feb 2024 16:51:20 +0400 Subject: [PATCH] fix: stop waiting for Agent in a goroutine in ssh test --- cli/ssh_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cli/ssh_test.go b/cli/ssh_test.go index ee7cefbee58d7..81019788c7639 100644 --- a/cli/ssh_test.go +++ b/cli/ssh_test.go @@ -455,12 +455,9 @@ func TestSSH(t *testing.T) { assert.NoError(t, err) }) - tGo(t, func() { - // When the agent connects, the workspace was started, and we should - // have access to the shell. - _ = agenttest.New(t, client.URL, authToken) - coderdtest.NewWorkspaceAgentWaiter(t, client, workspace.ID).Wait() - }) + // When the agent connects, the workspace was started, and we should + // have access to the shell. + _ = agenttest.New(t, client.URL, authToken) conn, channels, requests, err := ssh.NewClientConn(&stdioConn{ Reader: proxyCommandStdoutR,