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)
| 1253 | // |
| 1254 | // Deprecated: Use NewWorkspaceAgentWaiter |
| 1255 | func 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 |