MCPcopy Index your code
hub / github.com/coder/coder / AwaitWorkspaceAgents

Function AwaitWorkspaceAgents

coderd/coderdtest/coderdtest.go:1255–1257  ·  view source on GitHub ↗

AwaitWorkspaceAgents waits for all resources with agents to be connected. If specific agents are provided, it will wait for those agents to be connected but will not fail if other agents are not connected. Deprecated: Use NewWorkspaceAgentWaiter

(t testing.TB, client *codersdk.Client, workspaceID uuid.UUID, agentNames ...string)

Source from the content-addressed store, hash-verified

1253//
1254// Deprecated: Use NewWorkspaceAgentWaiter
1255func AwaitWorkspaceAgents(t testing.TB, client *codersdk.Client, workspaceID uuid.UUID, agentNames ...string) []codersdk.WorkspaceResource {
1256 return NewWorkspaceAgentWaiter(t, client, workspaceID).AgentNames(agentNames).Wait()
1257}
1258
1259// WorkspaceAgentWaiter waits for all resources with agents to be connected. If
1260// specific agents are provided using AgentNames(), it will wait for those agents

Callers 15

TestUserLatencyInsightsFunction · 0.92
TestDERPForceWebSocketsFunction · 0.92
TestWorkspaceWatcherFunction · 0.92
TestTemplateMetricsFunction · 0.92
TestNewFunction · 0.92
Test_ResolveRequestFunction · 0.92

Calls 3

NewWorkspaceAgentWaiterFunction · 0.85
AgentNamesMethod · 0.80
WaitMethod · 0.65

Tested by 15

TestUserLatencyInsightsFunction · 0.74
TestDERPForceWebSocketsFunction · 0.74
TestWorkspaceWatcherFunction · 0.74
TestTemplateMetricsFunction · 0.74
TestNewFunction · 0.74
Test_ResolveRequestFunction · 0.74