From 560972cead7792980aa94698f2ece3835ee8585c Mon Sep 17 00:00:00 2001 From: nazeh Date: Fri, 27 Sep 2024 12:33:35 +0300 Subject: [PATCH] fix(pubky): unit test bug --- pubky/src/shared/auth.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pubky/src/shared/auth.rs b/pubky/src/shared/auth.rs index 60ae1ae..aa8cfa9 100644 --- a/pubky/src/shared/auth.rs +++ b/pubky/src/shared/auth.rs @@ -305,10 +305,9 @@ mod tests { .unwrap(); } - let session = pubkyauth_response.await.unwrap().unwrap(); + let public_key = pubkyauth_response.await.unwrap(); - assert_eq!(session.pubky(), &pubky); - assert_eq!(session.capabilities(), &capabilities.0); + assert_eq!(&public_key, &pubky); // Test access control enforcement