Skip to content

Commit

Permalink
Update test for real-world data
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bigdaz committed Nov 11, 2024
1 parent c345cfb commit f31476b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/test/jest/wrapper-validation/checksums.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit f31476b

Please sign in to comment.