chore: fix upload test on macos ci (#3097)

This commit is contained in:
Fabian-Lars
2025-11-11 22:56:09 +01:00
committed by GitHub
parent ad910b1135
commit 27790aa67c
3 changed files with 3 additions and 2 deletions

View File

@@ -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<()> {

View File

@@ -0,0 +1 @@
mocked response body