We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 573605b + 56d315a commit 5659216Copy full SHA for 5659216
1 file changed
test/nuts/agent.nut.ts
@@ -184,8 +184,10 @@ describe('plugin-agent NUTs', () => {
184
execCmd(`agent activate --api-name ${botApiName} --target-org ${username} --json`, { ensureExitCode: 0 });
185
} catch (err) {
186
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);
+ const waitMin = 3;
+ 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.`);
191
192
}
193
0 commit comments