Skip to content
Snippets Groups Projects
Commit d5464dc8 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix cucumber

parent 2aafea1d
No related branches found
No related tags found
No related merge requests found
Pipeline #34974 passed
...@@ -549,18 +549,12 @@ async fn should_have_distance_ok(world: &mut DuniterWorld, who: String) -> Resul ...@@ -549,18 +549,12 @@ async fn should_have_distance_ok(world: &mut DuniterWorld, who: String) -> Resul
.unwrap(); .unwrap();
match world match world
.read(&gdev::storage().distance().identity_distance_status(idty_id)) .read(&gdev::storage().distance().valid_evaluation_result(idty_id))
.await .await
.await? .await?
{ {
Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Valid)) => Ok(()), Some(()) => Ok(()),
Some((_, gdev::runtime_types::pallet_distance::types::DistanceStatus::Invalid)) => { None => Err(anyhow::anyhow!("no valid distance status").into()),
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()),
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment