From f31476bde277b4d5aec579b5f2f44bdd2236a600 Mon Sep 17 00:00:00 2001 From: daz Date: Mon, 11 Nov 2024 12:15:03 -0700 Subject: [PATCH] Update test for real-world data This test assumed that at least one 'snapshot' wrapper checksum was unique, and not contained in the set of wrapper checksums for released distributions. This is no longer the case, so the assumption has been modified. --- sources/test/jest/wrapper-validation/checksums.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/test/jest/wrapper-validation/checksums.test.ts b/sources/test/jest/wrapper-validation/checksums.test.ts index b9d87c9..62f2478 100644 --- a/sources/test/jest/wrapper-validation/checksums.test.ts +++ b/sources/test/jest/wrapper-validation/checksums.test.ts @@ -37,7 +37,8 @@ test('fetches wrapper jar checksums for snapshots', async () => { const validChecksums = await checksums.fetchUnknownChecksums(true, new checksums.WrapperChecksums) // Expect that at least one snapshot checksum is different from the non-snapshot checksums - expect(validChecksums.size).toBeGreaterThan(nonSnapshotChecksums.size) + expect(nonSnapshotChecksums.size).toBeGreaterThan(10) + expect(validChecksums.size).toBeGreaterThanOrEqual(nonSnapshotChecksums.size) }) test('fetches all wrapper checksum URLS for snapshots', async () => {