From ba06c51eb4cd2deea95f0819d14e3fc1a5ce5631 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Mon, 2 Dec 2024 18:29:28 +0100 Subject: [PATCH] try --- tests/multipleBackend/routes/routeBackbeat.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/multipleBackend/routes/routeBackbeat.js b/tests/multipleBackend/routes/routeBackbeat.js index 799b69f2a4..2a511c0478 100644 --- a/tests/multipleBackend/routes/routeBackbeat.js +++ b/tests/multipleBackend/routes/routeBackbeat.js @@ -270,6 +270,8 @@ describe('backbeat routes', () => { .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', () => { @@ -294,11 +296,15 @@ describe('backbeat routes', () => { beforeEach(done => bucketUtil.emptyIfExists(BUCKET_FOR_NULL_VERSION) .then(() => s3.createBucket({ Bucket: BUCKET_FOR_NULL_VERSION }).promise()) + .then(() => done()) + .catch(done) ); afterEach(done => bucketUtil.empty(BUCKET_FOR_NULL_VERSION) .then(() => s3.deleteBucket({ Bucket: BUCKET_FOR_NULL_VERSION }).promise()) + .then(() => done()) + .catch(done) ); it('should update metadata of a current null version', done => {