From fb49c589af6c4d5ba3490b11a9901325b5ae38de Mon Sep 17 00:00:00 2001 From: Flori Weber Date: Sun, 18 Jun 2023 13:59:11 +0200 Subject: [PATCH] Send a friend request --- tests/relationships.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/relationships.rs b/tests/relationships.rs index 08f7efb..44de72d 100644 --- a/tests/relationships.rs +++ b/tests/relationships.rs @@ -21,7 +21,12 @@ async fn test_get_mutual_relationships() { let bundle = common::setup().await; let mut belongs_to = bundle.instance; let mut user = bundle.user; - let other_user = belongs_to.register_account(®ister_schema).await.unwrap(); + let mut other_user = belongs_to.register_account(®ister_schema).await.unwrap(); + let friend_request_schema = types::FriendRequestSendSchema { + username: user.object.username.clone(), + discriminator: Some(user.object.discriminator.clone()), + }; + other_user.send_friend_request(friend_request_schema).await; let relationships = user .get_mutual_relationships(&other_user.object.id.to_string()) .await