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

Function postStartup

coderd/workspaceagents_test.go:3186–3195  ·  view source on GitHub ↗
(ctx context.Context, t testing.TB, client agent.Client, startup *agentproto.Startup)

Source from the content-addressed store, hash-verified

3184}
3185
3186func postStartup(ctx context.Context, t testing.TB, client agent.Client, startup *agentproto.Startup) error {
3187 aAPI, _, err := client.ConnectRPC29(ctx)
3188 require.NoError(t, err)
3189 defer func() {
3190 cErr := aAPI.DRPCConn().Close()
3191 require.NoError(t, cErr)
3192 }()
3193 _, err = aAPI.UpdateStartup(ctx, &agentproto.UpdateStartupRequest{Startup: startup})
3194 return err
3195}
3196
3197type workspace struct {
3198 Status tailnetproto.Workspace_Status

Callers 1

Calls 4

ConnectRPC29Method · 0.65
CloseMethod · 0.65
DRPCConnMethod · 0.65
UpdateStartupMethod · 0.65

Tested by

no test coverage detected