File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,17 +217,17 @@ export default class Test extends SfCommand<RunCommandResult> {
217217 } ;
218218
219219 // cast as TestRunIdResult because we're building an async payload which will return an async result
220- return testService . runTestAsynchronous (
220+ return ( await testService . runTestAsynchronous (
221221 payload ,
222222 flags [ 'code-coverage' ] ,
223223 flags . wait && flags . wait . minutes > 0 ? false : ! ( flags . synchronous && ! this . jsonEnabled ( ) ) ,
224224 undefined ,
225- this . cancellationTokenSource . token
226- ) as Promise < TestRunIdResult > ;
225+ this . cancellationTokenSource . token ,
226+ flags . wait
227+ ) ) as TestRunIdResult ;
227228 }
228229}
229230
230- // eslint-disable-next-line class-methods-use-this
231231const validateFlags = async (
232232 classNames ?: string [ ] ,
233233 suiteNames ?: string [ ] ,
You can’t perform that action at this time.
0 commit comments