From 61562c1a284942b0bc9a8fac95450411edcde1d4 Mon Sep 17 00:00:00 2001 From: 0x009922 <43530070+0x009922@users.noreply.github.com> Date: Thu, 23 May 2024 19:09:44 +0900 Subject: [PATCH] test: expand messages Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com> --- .../executor_with_custom_parameter/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/tests/integration/smartcontracts/executor_with_custom_parameter/src/lib.rs b/client/tests/integration/smartcontracts/executor_with_custom_parameter/src/lib.rs index 4f7a9f391d8..b1f607f50f8 100644 --- a/client/tests/integration/smartcontracts/executor_with_custom_parameter/src/lib.rs +++ b/client/tests/integration/smartcontracts/executor_with_custom_parameter/src/lib.rs @@ -30,12 +30,13 @@ fn visit_set_parameter(executor: &mut Executor, _authority: &AccountId, isi: &Se } fn visit_register_domain(executor: &mut Executor, _authority: &AccountId, isi: &Register) { - // FIXME: unwrap is ok here? let required_prefix = FindAllParameters .execute() - .unwrap() + .expect("Iroha should not fail to provide parameters, it is a bug") .into_iter() - .map(Result::unwrap) + .map(|result| { + result.expect("each parameter retrieval should not fail as well, it is a bug") + }) .find_map(|parameter| EnforceDomainPrefix::try_from_object(¶meter).ok()); if let Some(EnforceDomainPrefix { prefix }) = required_prefix {