Skip to content

Commit

Permalink
Ensure no cleaning of quota upon test failure
Browse files Browse the repository at this point in the history
Issue: ZENKO-4941
  • Loading branch information
williamlardier committed Dec 4, 2024
1 parent 71b255c commit d460fcb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/ctst/common/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ After(async function (this: Zenko, results) {
);
});

After({ tags: '@Quotas' }, async function () {
After({ tags: '@Quotas' }, async function (this: Zenko, results) {
if (results.result?.status === 'FAILED') {
this.logger.warn('quota was not cleaned for test', {
bucket: this.getSaved<string>('bucketName'),
});
return;
}
await teardownQuotaScenarios(this as Zenko);
});

Expand Down

0 comments on commit d460fcb

Please sign in to comment.