diff --git a/tests/deployable.ic-repl.sh b/tests/deployable.ic-repl.sh index b800c6a..9416ced 100644 --- a/tests/deployable.ic-repl.sh +++ b/tests/deployable.ic-repl.sh @@ -86,7 +86,7 @@ function classes_redirect(wasm) { call S.get(42); assert _ == (null : opt empty); fail call S.put(42, "text"); - assert _ ~= "No route to canister"; + assert _ ~= "zz73r-nyaaa-aabbb-aaaca-cai not found"; S }; diff --git a/tests/tests.rs b/tests/tests.rs index 205c19f..dc68565 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -21,7 +21,7 @@ fn assert_wasm(expected: &str) { if ok != actual { use std::env; use std::io::Write; - if let Ok(_) = env::var("REGENERATE_GOLDENFILES") { + if env::var("REGENERATE_GOLDENFILES").is_ok() { let mut f = fs::File::create(&expected).unwrap(); f.write_all(&actual).unwrap(); } else {