Skip to content

Commit

Permalink
fix: turn off logs and change error
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Jun 20, 2024
1 parent a8786d9 commit a71be6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/crates/soroban-test/tests/it/integration/custom_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ use super::util::invoke_with_roundtrip;

fn invoke_custom(e: &TestEnv, id: &str, func: &str) -> assert_cmd::Command {
let mut s = e.new_assert_cmd("contract");
s.arg("invoke")
s.env("RUST_LOG", "soroban_cli::log::diagnostic_event=off")
.arg("invoke")
.arg("--id")
.arg(id)
.arg("--is-view")
Expand Down
4 changes: 2 additions & 2 deletions cmd/crates/soroban-test/tests/it/integration/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ async fn invoke_auth_with_different_test_account_fail(sandbox: &TestEnv, id: &st
.await;
let e = res.unwrap_err();
assert!(
matches!(e, contract::invoke::Error::Config(_)),
"Expected config error got {e:?}"
matches!(e, contract::invoke::Error::Rpc(_)),
"Expected rpc error got {e:?}"
);
}

Expand Down

0 comments on commit a71be6c

Please sign in to comment.