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
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let login_schema: LoginSchema = LoginSchema::new(
|
let login_schema: LoginSchema = LoginSchema::new(
|
||||||
AuthUsername::new("user1@gmail.com".to_string()).unwrap(),
|
AuthUsername::new("user@test.xyz".to_string()).unwrap(),
|
||||||
"user".to_string(),
|
"transrights".to_string(),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
|
@ -175,7 +175,7 @@ mod test {
|
||||||
async fn send_message_attachment() {
|
async fn send_message_attachment() {
|
||||||
let channel_id = "1104413094102290492".to_string();
|
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 reader = BufReader::new(f);
|
||||||
let mut buffer = Vec::new();
|
let mut buffer = Vec::new();
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ mod test {
|
||||||
|
|
||||||
let attachment = crate::api::types::PartialDiscordFileAttachment {
|
let attachment = crate::api::types::PartialDiscordFileAttachment {
|
||||||
id: None,
|
id: None,
|
||||||
filename: "test.png".to_string(),
|
filename: "README.md".to_string(),
|
||||||
description: None,
|
description: None,
|
||||||
content_type: None,
|
content_type: None,
|
||||||
size: None,
|
size: None,
|
||||||
|
@ -220,8 +220,8 @@ mod test {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let login_schema: LoginSchema = LoginSchema::new(
|
let login_schema: LoginSchema = LoginSchema::new(
|
||||||
AuthUsername::new("user1@gmail.com".to_string()).unwrap(),
|
AuthUsername::new("user@test.xyz".to_string()).unwrap(),
|
||||||
"user".to_string(),
|
"transrights".to_string(),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
|
|
Loading…
Reference in New Issue