update file to one that always exists, fix test

This commit is contained in:
bitfl0wer 2023-05-13 16:40:34 +02:00
parent d4568c998c
commit 35d081c649
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 6 additions and 6 deletions

View File

@ -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,