test(paste): update paste test about borrowing the config

This commit is contained in:
Orhun Parmaksız 2021-12-05 15:27:38 +03:00
parent 2b80c78a02
commit ebbe8dbfae
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -321,7 +321,9 @@ mod tests {
type_: PasteType::RemoteFile,
};
let client_data = Data::new(Client::default());
let file_name = paste.store_remote_file(None, &client_data, &config).await?;
let file_name = paste
.store_remote_file(None, &client_data, config.clone())
.await?;
let file_path = PasteType::RemoteFile
.get_path(&config.server.upload_path)
.join(&file_name);