From 94186321d8ba40ebd28484b7096fbb17449b0136 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov <39522748+dmitrylavrenov@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:44:58 +0300 Subject: [PATCH] Fix logic integration tests for robonode (#1263) --- crates/robonode-server/src/logic/tests.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/robonode-server/src/logic/tests.rs b/crates/robonode-server/src/logic/tests.rs index 3794723c3..63e3f7c0c 100644 --- a/crates/robonode-server/src/logic/tests.rs +++ b/crates/robonode-server/src/logic/tests.rs @@ -156,7 +156,7 @@ async fn setup() -> ( let locked = Locked { sequence: Sequence::new(0), - execution_id: "test".to_owned(), + execution_id: uuid::Uuid::new_v4(), facetec, signer: TestSigner, public_key_type: PhantomData::, @@ -201,7 +201,10 @@ async fn first_authenticate() { .await .unwrap_err(); - assert!(matches!(err, super::op_authenticate::Error::PersonNotFound)); + assert!(matches!( + err, + super::op_authenticate::Error::PersonNotFound(_) + )); } #[tokio::test] @@ -254,6 +257,6 @@ async fn double_enroll() { assert!(matches!( err, - super::op_enroll::Error::PersonAlreadyEnrolled + super::op_enroll::Error::PersonAlreadyEnrolled(_) )); }