mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 20:15:10 +00:00
perf: speed up the code hash with sha1 and a plain file reader
This commit is contained in:
@@ -16,7 +16,7 @@ pytestmark = pytest.mark.unit
|
||||
|
||||
def test_is_hex_and_stable() -> None:
|
||||
first = code_hash()
|
||||
assert len(first) == 32
|
||||
assert len(first) == 40
|
||||
assert int(first, 16) >= 0
|
||||
assert first == code_hash()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user