浏览代码

Fix test_chunking_time (#7101)

test_chunking_time: use a bigger file to avoid test fail due to rounding to 0.0
Franco Ayala 2 年之前
父节点
当前提交
eaccd9d578
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/testsuite/archiver/create_cmd.py

+ 1 - 1
src/borg/testsuite/archiver/create_cmd.py

@@ -801,7 +801,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
 
         # Test case set up: create a repository and a file
         self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)
-        self.create_regular_file("testfile", contents=randbytes(5000000))
+        self.create_regular_file("testfile", contents=randbytes(10000000))
         # Archive
         result = self.cmd(f"--repo={self.repository_location}", "create", "--stats", "test_archive", self.input_path)
         chunking_time = extract_chunking_time(result)