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

Method WithContext

coderd/coderdtest/coderdtest.go:1315–1319  ·  view source on GitHub ↗

WithContext instructs the waiter to use the provided context for all operations. If not specified, the waiter will create its own context with testutil.WaitLong timeout.

(ctx context.Context)

Source from the content-addressed store, hash-verified

1313// WithContext instructs the waiter to use the provided context for all operations.
1314// If not specified, the waiter will create its own context with testutil.WaitLong timeout.
1315func (w WorkspaceAgentWaiter) WithContext(ctx context.Context) WorkspaceAgentWaiter {
1316 //nolint: revive // returns modified struct
1317 w.ctx = ctx
1318 return w
1319}
1320
1321// WaitForAgentFn represents a boolean assertion to be made against each agent
1322// that a given WorkspaceAgentWaited knows about. Each WaitForAgentFn should apply

Callers 15

workspaceAgentReinitMethod · 0.80
injectSystemActorFunction · 0.80
insightsTemplatesMethod · 0.80
directorMethod · 0.80
TestPaginatedUsersFunction · 0.80
prInsightsMethod · 0.80
TestStripSlashesMWFunction · 0.80

Calls

no outgoing calls

Tested by 15

injectSystemActorFunction · 0.64
TestPaginatedUsersFunction · 0.64
TestStripSlashesMWFunction · 0.64
TestAPIKeyFunction · 0.64
TestTaskParamFunction · 0.64
TestOrganizationParamFunction · 0.64
TestWorkspaceParamFunction · 0.64
TestGroupParamFunction · 0.64