Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b14091e

Browse filesBrowse files
committed
test: correct hash test
1 parent 70a34a7 commit b14091e
Copy full SHA for b14091e

File tree

Expand file treeCollapse file tree

1 file changed

+6
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-8
lines changed

‎postgresql_archive/src/hasher/registry.rs

Copy file name to clipboardExpand all lines: postgresql_archive/src/hasher/registry.rs
+6-8Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,17 @@ impl Default for HasherRegistry {
7373
// The zonky maven central releases prior to version 13.2.0 only provide MD5/SHA-1 hashes.
7474
registry.register(
7575
|url, extension| {
76-
Ok(
77-
url.contains("io/zonky/test/postgres/embedded-postgres-binaries")
78-
&& extension == "sha1",
79-
)
76+
Ok(url.contains("zonky")
77+
&& url.contains("embedded-postgres-binaries")
78+
&& extension == "sha1")
8079
},
8180
sha1::hash,
8281
);
8382
registry.register(
8483
|url, extension| {
85-
Ok(
86-
url.contains("io/zonky/test/postgres/embedded-postgres-binaries")
87-
&& extension == "sha512",
88-
)
84+
Ok(url.contains("zonky")
85+
&& url.contains("embedded-postgres-binaries")
86+
&& extension == "sha512")
8987
},
9088
sha2_512::hash,
9189
);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.