Fix flaky test ?

This commit is contained in:
Nicolas Patry
2023-06-28 11:40:41 +02:00
parent d0ff3b2d13
commit 9c86e4afa8

View File

@ -522,7 +522,7 @@ impl Api {
let tmp_filename = self
.download_tempfile(&url, metadata.size, progressbar)
.await?;
std::fs::copy(tmp_filename, &blob_path)?;
tokio::fs::copy(tmp_filename, &blob_path).await?;
let mut pointer_path = self.cache.pointer_path(repo, &metadata.commit_hash);
pointer_path.push(filename);