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
..
archiver archiver: Fix flaky TestArchiverAbortEarlyOnError 2020-02-14 23:16:13 +01:00
backend Merge pull request #2530 from restic/fix-sftp-mkdirall 2020-02-13 01:12:59 +01:00
cache Add support for $RESTIC_CACHE_DIR 2019-09-26 15:59:56 -07:00
checker remove unnecessary error return 2020-01-27 18:28:21 +03:00
crypto crypto: Rework Seal/Open to use sliceForAppend 2017-11-01 10:30:40 +01:00
debug Remove build tag `release` 2018-10-11 19:40:38 +02:00
errors backup: Improve error message for invalid pattern 2018-10-03 11:12:51 +02:00
filter filter: Allow double wildcard in ChildMatch 2018-06-09 23:18:13 +02:00
fs simplified string sorting by using a more suitable function 2019-06-30 23:20:32 +03:00
fuse Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
hashing Moves files 2017-07-23 14:19:13 +02:00
index index.New: Test various error conditions 2018-10-28 14:02:31 +01:00
limiter rclone: Respect bandwith limits 2018-05-22 20:48:17 +02:00
migrations clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
mock mock: Remove unused repository type 2019-04-13 13:38:39 +02:00
options improved slice copying 2019-06-30 23:56:36 +03:00
pack backend: Improve Save() 2018-03-03 15:49:44 +01:00
repository Merge pull request #2577 from alrs/fix-internal-errs 2020-02-12 23:41:54 +01:00
restic internal/restic: fix dropped test error 2020-02-12 13:32:45 -08:00
restorer Fix rare 'file already closed' during restore 2019-03-16 17:01:20 +01:00
selfupdate self-update: Don't cancel download after 30 seconds 2019-02-23 11:15:18 +01:00
test Add test.Helper, also works with Go 1.8 2018-04-22 11:37:05 +02:00
textfile Add textfile 2018-05-01 14:38:59 +02:00
ui Better name for jsonstatus package 2020-02-13 21:14:20 +01:00
walker walk: Pass parent tree ID to WalkFunc 2018-08-19 23:28:04 +02:00