MCPcopy Create free account
hub / github.com/coder/coder / Run

Method Run

scaletest/dashboard/run.go:52–60  ·  view source on GitHub ↗
(ctx context.Context, _ string, _ io.Writer)

Source from the content-addressed store, hash-verified

50}
51
52func (r *Runner) Run(ctx context.Context, _ string, _ io.Writer) error {
53 err := r.runUntilDeadlineExceeded(ctx)
54 // If the context deadline exceeded, don't return an error.
55 // This just means the test finished.
56 if err == nil || errors.Is(err, context.DeadlineExceeded) {
57 return nil
58 }
59 return err
60}
61
62func (r *Runner) runUntilDeadlineExceeded(ctx context.Context) error {
63 if r.client == nil {

Callers 1

Test_RunFunction · 0.95

Calls 2

IsMethod · 0.45

Tested by 1

Test_RunFunction · 0.76