forked from TrueCloudLab/frostfs-testcases
Update pytest_tests/helpers/file_helper.py
Co-authored-by: Vladimir <108462321+vdomnich-yadro@users.noreply.github.com> Signed-off-by: anikeev-yadro <110966367+anikeev-yadro@users.noreply.github.com>
This commit is contained in:
parent
0e86d55806
commit
77ebf95434
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ def get_file_hash(file_path: str, len: Optional[int] = None, offset: Optional[in
|
|||
if len and offset is None:
|
||||
file_hash.update(out.read(len))
|
||||
elif len and offset:
|
||||
out.seek(offset, 1)
|
||||
out.seek(offset, 0)
|
||||
file_hash.update(out.read(len))
|
||||
else:
|
||||
file_hash.update(out.read())
|
||||
|
|
Loading…
Reference in a new issue