NewWorkspaceAgentWaiter returns an object that waits for agents to connect when you call Wait() on it.
(t testing.TB, client *codersdk.Client, workspaceID uuid.UUID)
| 1271 | // NewWorkspaceAgentWaiter returns an object that waits for agents to connect when |
| 1272 | // you call Wait() on it. |
| 1273 | func NewWorkspaceAgentWaiter(t testing.TB, client *codersdk.Client, workspaceID uuid.UUID) WorkspaceAgentWaiter { |
| 1274 | return WorkspaceAgentWaiter{ |
| 1275 | t: t, |
| 1276 | client: client, |
| 1277 | workspaceID: workspaceID, |
| 1278 | } |
| 1279 | } |
| 1280 | |
| 1281 | // RequireWorkspaceAgentByName avoids weak nil UUID assertions when a fixture requires a specific agent. |
| 1282 | func RequireWorkspaceAgentByName(t testing.TB, resources []codersdk.WorkspaceResource, name string) codersdk.WorkspaceAgent { |
no outgoing calls