2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-24 07:38:25 +00:00
Michael Eischer e1f722d266 archiver: Fix flaky TestArchiverAbortEarlyOnError
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.
2020-02-14 23:16:13 +01:00
..
2018-05-12 23:55:54 +02:00
2018-04-30 15:13:28 +02:00
2018-05-12 23:55:54 +02:00
2018-04-25 14:42:45 +02:00
2018-04-25 14:42:45 +02:00
2018-05-12 23:55:54 +02:00
2018-06-20 22:56:41 +02:00