File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,10 @@ describe('plugin-agent NUTs', () => {
184184 execCmd ( `agent activate --api-name ${ botApiName } --target-org ${ username } --json` , { ensureExitCode : 0 } ) ;
185185 } catch ( err ) {
186186 const errMsg = err instanceof Error ? err . message : 'unknown' ;
187- console . log ( `Error activating agent due to ${ errMsg } . \nWaiting 2 minutes and trying again...` ) ;
188- await sleep ( 120_000 ) ;
187+ const waitMin = 3 ;
188+ console . log ( `Error activating agent due to ${ errMsg } . \nWaiting ${ waitMin } minutes and trying again...` ) ;
189+ await sleep ( waitMin * 60 * 1000 ) ;
190+ console . log ( `${ waitMin } minutes is up, retrying now.` ) ;
189191 execCmd ( `agent activate --api-name ${ botApiName } --target-org ${ username } --json` , { ensureExitCode : 0 } ) ;
190192 }
191193
You can’t perform that action at this time.
0 commit comments