Skip to content

Commit

Permalink
add quotes to md5 mismatch err
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes committed Sep 7, 2024
1 parent 3937eaa commit 139c956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/directsketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async fn download_with_retry(
return Ok(data.to_vec());
} else {
last_error = Some(anyhow!(
"MD5 hash does not match. Expected: {}; Found: {}",
"MD5 hash does not match. Expected: '{}'; Found: '{}'",
md5,
computed_hash
));
Expand Down
2 changes: 1 addition & 1 deletion tests/test_urlsketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def test_urlsketch_md5sum_mismatch_checksum_file(runtmp, capfd):
assert expected_md5 == "b1234567"
assert download_filename == "GCA_000175535.1_genomic.urlsketch.fna.gz"
assert url == "https://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/000/175/535/GCA_000175535.1_ASM17553v1/GCA_000175535.1_ASM17553v1_genomic.fna.gz"
assert reason == "MD5 hash does not match. Expected: b1234567; Found: a1a8f1c6dc56999c73fe298871c963d1"
assert reason == "MD5 hash does not match. Expected: 'b1234567'; Found: 'a1a8f1c6dc56999c73fe298871c963d1'"


def test_urlsketch_md5sum_mismatch_no_checksum_file(runtmp, capfd):
Expand Down

0 comments on commit 139c956

Please sign in to comment.