mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-01-31 00:45:24 +01:00
chore: fix upload test on macos ci (#3097)
This commit is contained in:
@@ -298,7 +298,7 @@ mod tests {
|
||||
}
|
||||
|
||||
async fn download_file(url: String) -> Result<()> {
|
||||
let file_path = concat!(env!("CARGO_MANIFEST_DIR"), "/test/test.txt").to_string();
|
||||
let file_path = concat!(env!("CARGO_MANIFEST_DIR"), "/test/download.txt").to_string();
|
||||
let headers = HashMap::new();
|
||||
let sender: Channel<ProgressPayload> =
|
||||
Channel::new(|msg: InvokeResponseBody| -> tauri::Result<()> {
|
||||
@@ -309,7 +309,7 @@ mod tests {
|
||||
}
|
||||
|
||||
async fn upload_file(url: String, method: Option<HttpMethod>) -> Result<String> {
|
||||
let file_path = concat!(env!("CARGO_MANIFEST_DIR"), "/test/test.txt").to_string();
|
||||
let file_path = concat!(env!("CARGO_MANIFEST_DIR"), "/test/upload.txt").to_string();
|
||||
let headers = HashMap::new();
|
||||
let sender: Channel<ProgressPayload> =
|
||||
Channel::new(|msg: InvokeResponseBody| -> tauri::Result<()> {
|
||||
|
||||
1
plugins/upload/test/upload.txt
Normal file
1
plugins/upload/test/upload.txt
Normal file
@@ -0,0 +1 @@
|
||||
mocked response body
|
||||
Reference in New Issue
Block a user