restic/internal/archiver
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
..
archiver.go Merge pull request #2577 from alrs/fix-internal-errs 2020-02-12 23:41:54 +01:00
archiver_test.go archiver: Fix flaky TestArchiverAbortEarlyOnError 2020-02-14 23:16:13 +01:00
archiver_unix_test.go archiver: Use untyped constants for testing FileInfo 2019-05-05 14:57:38 +02:00
archiver_windows_test.go archiver: Use untyped constants for testing FileInfo 2019-05-05 14:57:38 +02:00
blob_saver.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
blob_saver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
buffer.go archiver: Improve buffer pool 2018-04-30 15:13:28 +02:00
doc.go archiver: Add high-level documentation 2018-05-12 23:55:54 +02:00
file_saver.go archiver: Add test for early abort on unhandled error 2018-05-12 23:55:59 +02:00
file_saver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
index_uploader.go Add new archiver code 2018-04-25 14:42:45 +02:00
scanner.go scanner: Use context only for cancellation 2018-09-08 18:53:12 +02:00
scanner_test.go scanner: Use context only for cancellation 2018-09-08 18:53:12 +02:00
testing.go Use new archiver code in tests 2018-04-25 14:42:45 +02:00
testing_test.go Fix formatting for gofmt with Go 1.11 2018-08-31 21:10:26 +02:00
tree.go clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
tree_saver.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
tree_saver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
tree_test.go archiver: Unroll tree 2018-06-20 22:56:41 +02:00