update file to one that always exists, fix test
This commit is contained in:
parent
c74e40e5f9
commit
092eed6957
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue