1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-25 15:33:39 +00:00

fix failing hashing_time test

fast CPUs failed the test due to rounding down to 0.00s.
This commit is contained in:
Thomas Waldmann 2022-11-07 10:51:04 +01:00
parent 473a74d9da
commit 85b0dc873a
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -783,7 +783,7 @@ def extract_hashing_time(borg_create_output):
# Test case set up: create a repository and a file
self.cmd(f"--repo={self.repository_location}", "rcreate", "--encryption=none")
self.create_regular_file("testfile", contents=randbytes(6000000))
self.create_regular_file("testfile", contents=randbytes(15000000)) # more data might be needed for faster CPUs
# Archive
result = self.cmd(f"--repo={self.repository_location}", "create", "--stats", "test_archive", self.input_path)
hashing_time = extract_hashing_time(result)