Skip to content

Commit 20d9fc5

Browse files
committed
fix: min duration for --wait on apex test run (prevent -1)
1 parent f6cc0ef commit 20d9fc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/commands/apex/run/test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,13 @@ export default class Test extends SfCommand<RunCommandResult> {
8282
summary: messages.getMessage('flags.tests.summary'),
8383
description: messages.getMessage('flags.tests.description'),
8484
}),
85+
// we want to pass `undefined` to the API
86+
// eslint-disable-next-line sf-plugin/flag-min-max-default
8587
wait: Flags.duration({
8688
unit: 'minutes',
8789
char: 'w',
8890
summary: messages.getMessage('flags.wait.summary'),
91+
min: 0,
8992
}),
9093
synchronous: Flags.boolean({
9194
char: 'y',

0 commit comments

Comments
 (0)