mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix(scaletest/dashboard): fix early exit due to validate (#10212)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user