From 3dea5a334bca11530af8842c5c1690f2f6cfdb0c Mon Sep 17 00:00:00 2001 From: oleiade Date: Mon, 29 Jul 2024 12:05:23 +0200 Subject: [PATCH] Fix flaky s3 listbuckets test --- tests/internal/s3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/internal/s3.js b/tests/internal/s3.js index a65c0e8..70d2b5b 100644 --- a/tests/internal/s3.js +++ b/tests/internal/s3.js @@ -11,14 +11,14 @@ export async function s3TestSuite(data) { s3Client.endpoint = s3Endpoint await asyncDescribe('s3.listBuckets', async (expect) => { - let buckets; + let buckets // Act buckets = await s3Client.listBuckets() // Assert expect(buckets).to.be.an('array') // Because other tests may have created buckets, we can't assume there is only one bucket. - expect(buckets).to.have.lengthOf.above(1) + expect(buckets).to.have.lengthOf.least(1) expect(buckets.map((b) => b.name)).to.contain(data.s3.testBucketName) })