mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
test(paste): update paste test about borrowing the config
This commit is contained in:
parent
2b80c78a02
commit
ebbe8dbfae
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue