Skip to content

Commit 8810f99

Browse files
committed
roachtestutil: fix duration regex for workload duration
Capital time suffixes, i.e. H, M, S are not allowed.
1 parent dec7e21 commit 8810f99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/roachtest/roachtestutil/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func GetMeanOverLastN(n int, items []float64) float64 {
198198
// Usage: ROACHTEST_PERF_WORKLOAD_DURATION="5m".
199199
const EnvWorkloadDurationFlag = "ROACHTEST_PERF_WORKLOAD_DURATION"
200200

201-
var workloadDurationRegex = regexp.MustCompile(`^\d+[mhsMHS]$`)
201+
var workloadDurationRegex = regexp.MustCompile(`^\d+[mhs]$`)
202202

203203
// GetEnvWorkloadDurationValueOrDefault validates EnvWorkloadDurationFlag and
204204
// returns value set if valid else returns default duration.

0 commit comments

Comments
 (0)