fix(scaletest/dashboard): fix early exit due to validate (#10212)

This commit is contained in:
Cian Johnston
2023-10-11 12:51:06 +01:00
committed by GitHub
parent ed8092c83d
commit e829cbf2db
3 changed files with 5 additions and 8 deletions

View File

@ -4,6 +4,7 @@ import (
"context"
"errors"
"io"
"math/rand"
"time"
"golang.org/x/xerrors"
@ -35,6 +36,9 @@ func NewRunner(client *codersdk.Client, metrics Metrics, cfg Config) *Runner {
if cfg.Screenshot == nil {
cfg.Screenshot = Screenshot
}
if cfg.RandIntn == nil {
cfg.RandIntn = rand.Intn
}
return &Runner{
client: client,
cfg: cfg,