Skip to content

Commit

Permalink
test: correct hash test
Browse files Browse the repository at this point in the history
  • Loading branch information
brianheineman committed Jun 30, 2024
1 parent 70a34a7 commit b14091e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions postgresql_archive/src/hasher/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,17 @@ impl Default for HasherRegistry {
// The zonky maven central releases prior to version 13.2.0 only provide MD5/SHA-1 hashes.
registry.register(
|url, extension| {
Ok(
url.contains("io/zonky/test/postgres/embedded-postgres-binaries")
&& extension == "sha1",
)
Ok(url.contains("zonky")
&& url.contains("embedded-postgres-binaries")
&& extension == "sha1")
},
sha1::hash,
);
registry.register(
|url, extension| {
Ok(
url.contains("io/zonky/test/postgres/embedded-postgres-binaries")
&& extension == "sha512",
)
Ok(url.contains("zonky")
&& url.contains("embedded-postgres-binaries")
&& extension == "sha512")
},
sha2_512::hash,
);
Expand Down

0 comments on commit b14091e

Please sign in to comment.