Skip to content

Commit fba17be

Browse files
committed
fix: handle wait 0
1 parent ca25b1e commit fba17be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/apex/run/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export default class Test extends SfCommand<RunCommandResult> {
239239
return testService.runTestAsynchronous(
240240
payload,
241241
flags['code-coverage'],
242-
flags.wait ? false : !(flags.synchronous && !this.jsonEnabled()),
242+
flags.wait && flags.wait.minutes > 0 ? false : !(flags.synchronous && !this.jsonEnabled()),
243243
undefined,
244244
this.cancellationTokenSource.token
245245
) as Promise<TestRunIdResult>;

0 commit comments

Comments
 (0)