From e5b7edbc14a0ede30e9b41f7e2c5d16513810363 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 9 May 2024 21:18:56 +1000 Subject: [PATCH] small fix to tests --- cmd/crates/soroban-test/tests/it/util.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/crates/soroban-test/tests/it/util.rs b/cmd/crates/soroban-test/tests/it/util.rs index c70091503..c2f01054c 100644 --- a/cmd/crates/soroban-test/tests/it/util.rs +++ b/cmd/crates/soroban-test/tests/it/util.rs @@ -53,7 +53,10 @@ pub async fn invoke_custom( ) -> Result { let mut i: contract::invoke::Cmd = sandbox.cmd_with_config(&["--id", id, "--", func, arg]); i.wasm = Some(wasm.to_path_buf()); - sandbox.run_cmd_with(i, TEST_ACCOUNT).await + sandbox + .run_cmd_with(i, TEST_ACCOUNT) + .await + .map(|r| r.into_result().unwrap()) } pub const DEFAULT_CONTRACT_ID: &str = "CDR6QKTWZQYW6YUJ7UP7XXZRLWQPFRV6SWBLQS4ZQOSAF4BOUD77OO5Z";