Merge pull request #25 from LaurentMazare/fix_hub

Fix flaky test ?
This commit is contained in:
Nicolas Patry
2023-06-28 12:42:38 +02:00
committed by GitHub

View File

@ -522,7 +522,7 @@ impl Api {
let tmp_filename = self let tmp_filename = self
.download_tempfile(&url, metadata.size, progressbar) .download_tempfile(&url, metadata.size, progressbar)
.await?; .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); let mut pointer_path = self.cache.pointer_path(repo, &metadata.commit_hash);
pointer_path.push(filename); pointer_path.push(filename);