Skip to content

Commit

Permalink
Fix logic integration tests for robonode (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Sep 12, 2024
1 parent 49fc577 commit 9418632
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/robonode-server/src/logic/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<TestValidatorPublicKey>,
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -254,6 +257,6 @@ async fn double_enroll() {

assert!(matches!(
err,
super::op_enroll::Error::PersonAlreadyEnrolled
super::op_enroll::Error::PersonAlreadyEnrolled(_)
));
}

0 comments on commit 9418632

Please sign in to comment.