Skip to content

Commit 2465473

Browse files
author
Kerkesni
committed
increase timeouts
1 parent 37a2881 commit 2465473

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ctst/steps/azureArchive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ Then('object {string} should expire in {int} days', async function (this: Zenko,
401401
`Expected ${realTimeDays} but got ${diff} ; ${this.parameters.TimeProgressionFactor}`);
402402
});
403403

404-
Given('that lifecycle is {string} for the {string} location',
404+
Given('that lifecycle is {string} for the {string} location', { timeout: 10 * 60 * 1000 },
405405
async function (this: Zenko, status: string, location: string) {
406406
let path: string;
407407
if (status === 'paused') {

tests/ctst/steps/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ async function verifyObjectLocation(this: Zenko, objectName: string,
392392
while (!conditionOk) {
393393
const res = await S3.headObject(this.getCommandParameters());
394394
if (res.err?.includes('NotFound')) {
395-
if (Date.now() - startTime > 300000) {
396-
throw new Error('Object not found after 300 seconds');
395+
if (Date.now() - startTime > 600000) {
396+
throw new Error('Object not found after 600 seconds');
397397
}
398398
await Utils.sleep(1000);
399399
continue;

0 commit comments

Comments
 (0)