Skip to content

Commit b044c4e

Browse files
committed
rename func
1 parent 5d5db72 commit b044c4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scaletest/dashboard/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewRunner(client *codersdk.Client, metrics Metrics, cfg Config) *Runner {
4343
}
4444

4545
func (r *Runner) Run(ctx context.Context, _ string, _ io.Writer) error {
46-
err := r._run(ctx)
46+
err := r.runUntilDeadlineExceeded(ctx)
4747
// If the context deadline exceeded, don't return an error.
4848
// This just means the test finished.
4949
if err == nil || errors.Is(err, context.DeadlineExceeded) {
@@ -52,7 +52,7 @@ func (r *Runner) Run(ctx context.Context, _ string, _ io.Writer) error {
5252
return err
5353
}
5454

55-
func (r *Runner) _run(ctx context.Context) error {
55+
func (r *Runner) runUntilDeadlineExceeded(ctx context.Context) error {
5656
if r.client == nil {
5757
return xerrors.Errorf("client is nil")
5858
}

0 commit comments

Comments
 (0)