Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Dec 2, 2024
1 parent a9ab662 commit 09d2067
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tests/multipleBackend/routes/routeBackbeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,13 @@ describe('backbeat routes', () => {
});
});

after(done =>
after(() =>
bucketUtil.empty(TEST_BUCKET)
.then(() => s3.deleteBucket({ Bucket: TEST_BUCKET }).promise())
.then(() => bucketUtil.empty(TEST_ENCRYPTED_BUCKET))
.then(() => s3.deleteBucket({ Bucket: TEST_ENCRYPTED_BUCKET }).promise())
.then(() => bucketUtil.empty(NONVERSIONED_BUCKET))
.then(() => s3.deleteBucket({ Bucket: NONVERSIONED_BUCKET }).promise())
.then(() => done())
.catch(done)
);

describe('null version', () => {
Expand All @@ -293,18 +291,14 @@ describe('backbeat routes', () => {
assert.strictEqual(StorageClass, 'STANDARD');
}

beforeEach(done =>
beforeEach(() =>
bucketUtil.emptyIfExists(BUCKET_FOR_NULL_VERSION)
.then(() => s3.createBucket({ Bucket: BUCKET_FOR_NULL_VERSION }))
.then(() => done())
.catch(done)
.then(() => s3.createBucket({ Bucket: BUCKET_FOR_NULL_VERSION }).promise())
);

afterEach(done =>
afterEach(() =>
bucketUtil.empty(BUCKET_FOR_NULL_VERSION)
.then(() => s3.deleteBucket({ Bucket: BUCKET_FOR_NULL_VERSION }))
.then(() => done())
.catch(done)
.then(() => s3.deleteBucket({ Bucket: BUCKET_FOR_NULL_VERSION }).promise())
);

it('should update metadata of a current null version', done => {
Expand Down

0 comments on commit 09d2067

Please sign in to comment.