Skip to content

Commit 24c80bf

Browse files
authored
fix: remove AwaitWorkspaceAgents in goroutines
AwaitWorkspaceAgent calls testify.require which isn't allowed from a goroutine and causes cascading failures in the test suite such as: https://github.com/coder/coder/actions/runs/6458768855/job/17533163316 I don't believe these functions serve a direct purpose since nothing else is "waiting" for the functions to return before doing other things.
1 parent 17e889a commit 24c80bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cli/ssh_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ func TestSSH(t *testing.T) {
183183
// Run this async so the SSH command has to wait for
184184
// the build and agent to connect!
185185
_ = agenttest.New(t, client.URL, agentToken)
186-
coderdtest.AwaitWorkspaceAgents(t, client, workspace.ID)
187186
<-ctx.Done()
188187
})
189188

@@ -246,7 +245,6 @@ func TestSSH(t *testing.T) {
246245
// Run this async so the SSH command has to wait for
247246
// the build and agent to connect.
248247
_ = agenttest.New(t, client.URL, agentToken)
249-
coderdtest.AwaitWorkspaceAgents(t, client, workspace.ID)
250248
<-ctx.Done()
251249
})
252250

0 commit comments

Comments
 (0)