From d5464dc89da51b3119cefc96a53f2ab748311d0f Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Wed, 20 Dec 2023 13:06:25 +0100 Subject: [PATCH] fix cucumber --- end2end-tests/tests/cucumber_tests.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/end2end-tests/tests/cucumber_tests.rs b/end2end-tests/tests/cucumber_tests.rs index db7e64171..de18871d8 100644 --- a/end2end-tests/tests/cucumber_tests.rs +++ b/end2end-tests/tests/cucumber_tests.rs @@ -549,18 +549,12 @@ async fn should_have_distance_ok(world: &mut DuniterWorld, who: String) -> Resul .unwrap(); match world - .read(&gdev::storage().distance().identity_distance_status(idty_id)) + .read(&gdev::storage().distance().valid_evaluation_result(idty_id)) .await .await? { - Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Valid)) => Ok(()), - Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Invalid)) => { - Err(anyhow::anyhow!("invalid distance status").into()) - } - Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Pending)) => { - Err(anyhow::anyhow!("pending distance status").into()) - } - None => Err(anyhow::anyhow!("no distance status").into()), + Some(()) => Ok(()), + None => Err(anyhow::anyhow!("no valid distance status").into()), } } -- GitLab