aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/installer_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/installer_test.rs')
-rw-r--r--crates/shirabe/tests/installer_test.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/shirabe/tests/installer_test.rs b/crates/shirabe/tests/installer_test.rs
index b81ec7a4..d0b60ba8 100644
--- a/crates/shirabe/tests/installer_test.rs
+++ b/crates/shirabe/tests/installer_test.rs
@@ -707,7 +707,8 @@ fn load_integration_tests(path: &str) -> Vec<IntegrationCase> {
let encoded = JsonFile::encode_with_options(
&composer,
shirabe::json::JsonEncodeOptions::none(),
- );
+ )
+ .unwrap();
let hash = format!("{:x}", md5::compute(encoded.as_bytes()));
lock["hash"] = serde_json::Value::String(hash);
}
@@ -926,7 +927,8 @@ fn do_test_integration(case: &IntegrationCase, expect_output: Option<&str>) {
// escaped), or the freshness check spuriously fails on any composer.json containing "/"
// (e.g. any vendor/package name).
let contents =
- JsonFile::encode_with_options(&case.composer, shirabe::json::JsonEncodeOptions::none());
+ JsonFile::encode_with_options(&case.composer, shirabe::json::JsonEncodeOptions::none())
+ .unwrap();
let locker = Locker::new(io.clone(), lock_json, locker_im, &contents, process);
composer
.borrow_mut()