2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-27 00:58:36 +00:00
restic/internal
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
..
2019-09-26 15:59:56 -07:00
2020-01-27 18:28:21 +03:00
2018-10-11 19:40:38 +02:00
2018-06-16 15:55:04 +09:00
2017-07-23 14:19:13 +02:00
2018-05-22 20:48:17 +02:00
2019-04-13 13:38:39 +02:00
2019-06-30 23:56:36 +03:00
2018-03-03 15:49:44 +01:00
2018-05-01 14:38:59 +02:00
2020-02-13 21:14:20 +01:00