Skip to content

Commit 13ff2bf

Browse files
committed
wip
1 parent 75cab8c commit 13ff2bf

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

bindings_ffi/src/mls.rs

+31-1
Original file line numberDiff line numberDiff line change
@@ -3150,16 +3150,46 @@ mod tests {
31503150
assert_eq!(updated_state.members().len(), 3);
31513151
}
31523152

3153+
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
3154+
async fn test_physical_passkey() {
3155+
let owner = LocalWalletInboxOwner::new();
3156+
let nonce = 1;
3157+
let ident = owner.identifier();
3158+
let inbox_id = ident.inbox_id(nonce).unwrap();
3159+
let path = tmp_path();
3160+
let key = static_enc_key().to_vec();
3161+
3162+
let client = create_client(
3163+
connect_to_backend(xmtp_api_grpc::LOCALHOST_ADDRESS.to_string(), false)
3164+
.await
3165+
.unwrap(),
3166+
Some(path.clone()),
3167+
Some(key),
3168+
&inbox_id,
3169+
ident,
3170+
nonce,
3171+
None,
3172+
None,
3173+
)
3174+
.await
3175+
.unwrap();
3176+
3177+
register_client(&owner, &client).await;
3178+
3179+
let signature_request = client.signature_request().unwrap().clone();
3180+
signature_request.add_wallet_signature(&owner.wallet).await;
3181+
}
3182+
31533183
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
31543184
async fn test_can_revoke_wallet() {
31553185
// Setup the initial first client
31563186
let ffi_inbox_owner = LocalWalletInboxOwner::new();
31573187
let nonce = 1;
31583188
let ident = ffi_inbox_owner.identifier();
31593189
let inbox_id = ident.inbox_id(nonce).unwrap();
3160-
31613190
let path = tmp_path();
31623191
let key = static_enc_key().to_vec();
3192+
31633193
let client = create_client(
31643194
connect_to_backend(xmtp_api_grpc::LOCALHOST_ADDRESS.to_string(), false)
31653195
.await

0 commit comments

Comments
 (0)