Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Jul 1, 2023
1 parent 932c1da commit 7d6bddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/deployable.ic-repl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down
2 changes: 1 addition & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7d6bddb

Please sign in to comment.