We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert_ok/err!()
verify_tarball()
1 parent 8caecae commit b25ad21Copy full SHA for b25ad21
src/controllers/krate/publish.rs
@@ -425,7 +425,9 @@ mod tests {
425
GzEncoder::new(pkg.into_inner().unwrap().as_slice(), Default::default())
426
.read_to_end(&mut serialized_archive)
427
.unwrap();
428
- verify_tarball("foo-0.0.1", &serialized_archive, 512 * 1024 * 1024).unwrap();
429
- verify_tarball("bar-0.0.1", &serialized_archive, 512 * 1024 * 1024).unwrap_err();
+
+ let limit = 512 * 1024 * 1024;
430
+ assert_ok!(verify_tarball("foo-0.0.1", &serialized_archive, limit));
431
+ assert_err!(verify_tarball("bar-0.0.1", &serialized_archive, limit));
432
}
433
0 commit comments