From 35d081c649411d4899a1bc958420a697cee699ff Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sat, 13 May 2023 16:40:34 +0200 Subject: [PATCH] update file to one that always exists, fix test --- src/api/channels/messages.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/channels/messages.rs b/src/api/channels/messages.rs index 0b73945..00f97f1 100644 --- a/src/api/channels/messages.rs +++ b/src/api/channels/messages.rs @@ -151,8 +151,8 @@ mod test { .await .unwrap(); let login_schema: LoginSchema = LoginSchema::new( - AuthUsername::new("user1@gmail.com".to_string()).unwrap(), - "user".to_string(), + AuthUsername::new("user@test.xyz".to_string()).unwrap(), + "transrights".to_string(), None, None, None, @@ -175,7 +175,7 @@ mod test { async fn send_message_attachment() { let channel_id = "1104413094102290492".to_string(); - let f = File::open("/drive/hdd1/Pictures/polyphony-chorus8bit.png").unwrap(); + let f = File::open("./README.md").unwrap(); let mut reader = BufReader::new(f); let mut buffer = Vec::new(); @@ -183,7 +183,7 @@ mod test { let attachment = crate::api::types::PartialDiscordFileAttachment { id: None, - filename: "test.png".to_string(), + filename: "README.md".to_string(), description: None, content_type: None, size: None, @@ -220,8 +220,8 @@ mod test { .await .unwrap(); let login_schema: LoginSchema = LoginSchema::new( - AuthUsername::new("user1@gmail.com".to_string()).unwrap(), - "user".to_string(), + AuthUsername::new("user@test.xyz".to_string()).unwrap(), + "transrights".to_string(), None, None, None,