mirror of
https://github.com/restic/restic.git
synced 2024-12-26 01:37:12 +00:00
e1f722d266
Each of the random test files was split into the same five blobs. The test fails once the fifth blob is passed on to `SaveBlob`. That is for certain interleavings of goroutine execution it would be possible for the test to trigger the testErr just after storing the first file. The fixed test uses a different file content for each of the nine files and fails after writing the fourth blob. The file content is also small enough to ensure that for each file only a single blob is saved. This guarantees that the test cannot fail before reading the first four files. FileReadConcurrency = 2 allows up to two files queued for processing. Therefore the test can at most open the sixth file before it has to save the fourth file / blob which triggers the testErr. |
||
---|---|---|
.. | ||
archiver | ||
backend | ||
cache | ||
checker | ||
crypto | ||
debug | ||
errors | ||
filter | ||
fs | ||
fuse | ||
hashing | ||
index | ||
limiter | ||
migrations | ||
mock | ||
options | ||
pack | ||
repository | ||
restic | ||
restorer | ||
selfupdate | ||
test | ||
textfile | ||
ui | ||
walker |