(ctx context.Context, _ string, _ io.Writer)
| 50 | } |
| 51 | |
| 52 | func (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 | |
| 62 | func (r *Runner) runUntilDeadlineExceeded(ctx context.Context) error { |
| 63 | if r.client == nil { |