Skip to content

Commit

Permalink
fixed weirdness in tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
0xricksanchez committed Oct 28, 2022
1 parent a183993 commit e8cdfaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/test_kernel_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ def test_run(tmp_path):
lkdl = KernelDownloader(**{"user_cfg": str(Path("./src/tests/confs/lkdl_tag.ini").absolute())})
lkdl.kernel_dl_path = tmp_path
lkdl.archive = Path(lkdl.kernel_dl_path) / f"linux-{lkdl._set_choice()}.tar.gz"
lkdl.dl_uri = "https://file-examples.com/wp-content/uploads/2017/02/zip_2MB.zip"
lkdl.dl_uri = "https://github.com/0xricksanchez/like-dbg/blob/main/src/tests/files/empty.tar.gz?raw=true"
lkdl.run()
assert hashlib.md5(lkdl.archive.read_bytes()).hexdigest() == "805b6db3298f838d1998466e54471490"
assert hashlib.md5(lkdl.archive.read_bytes()).hexdigest() == "b1f3f40af1e5c64dbf4a1302ca94ac12"

0 comments on commit e8cdfaa

Please sign in to comment.