Skip to content

Commit 56d315a

Browse files
authored
chore: longer timeout
1 parent 573605b commit 56d315a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/nuts/agent.nut.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)