Unverified Commit f31476bd authored by daz's avatar daz
Browse files

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.
parent c345cfbe
Loading
Loading
Loading
Loading
+2 −1
Changes for sources/test/jest/wrapper-validation/checksums.test.ts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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 () => {