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

Function NewWorkspaceAgentWaiter

coderd/coderdtest/coderdtest.go:1273–1279  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1271// NewWorkspaceAgentWaiter returns an object that waits for agents to connect when
1272// you call Wait() on it.
1273func 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.
1282func RequireWorkspaceAgentByName(t testing.TB, resources []codersdk.WorkspaceResource, name string) codersdk.WorkspaceAgent {

Calls

no outgoing calls