2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-15 17:47:21 +00:00
restic/internal
Michael Eischer 4a33370072 backend: Fix unreliable TestListCancel/Timeout test
The test uses `WithTimeout` to create a context that cancels the List
operation after a given delay. Several backends internally use a derived
child context created using WithCancel.

The cancellation of a context first closes the done channel of the
context (here: the `WithTimeout` context) and _afterwards_ propagates
the cancellation to child contexts (here: the `WithCancel` context).
Therefor if the List implementation uses a child context, then it may
take a moment until that context is also cancelled. Thus give the
context cancellation a moment to propagate.
2023-07-23 11:47:56 +02:00
..
archiver add program version to snapshot 2023-07-07 23:27:10 +02:00
backend backend: Fix unreliable TestListCancel/Timeout test 2023-07-23 11:47:56 +02:00
bloblru bloblru: Upgrade to hashicorp/golang-lru/v2 2022-11-27 17:18:13 +01:00
cache Merge pull request #4343 from greatroar/cache 2023-06-02 22:41:17 +02:00
checker check: Fix flaky TestCheckerModifiedData 2023-05-01 17:18:19 +02:00
crypto Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
debug Rename unused testing parameter to _ 2023-05-18 21:17:53 +02:00
dump dump: Report filename with tar.ErrFieldTooLong 2023-04-27 11:45:41 +02:00
errors errors: Drop WithMessage 2022-10-14 14:06:47 +02:00
filter remove no longer necessary conditional compiles 2022-11-27 13:18:44 +01:00
fs Move PreallocateFile to fs package 2023-06-09 11:49:06 +03:00
fuse restic: Cleanup and simplify TestCreateSnapshot 2023-07-22 19:55:57 +02:00
hashing Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
index restic: Cleanup and simplify TestCreateSnapshot 2023-07-22 19:55:57 +02:00
migrations restic: generic implemention of AsBackend 2023-07-22 19:55:44 +02:00
options backend, options: Prefer strings.Cut to SplitN 2022-12-02 19:19:14 +01:00
pack repository: optimize MasterIndex.Each 2022-09-24 12:21:59 +02:00
repository Merge pull request #4353 from MichaelEischer/tune-gc 2023-06-16 23:24:39 +02:00
restic restic: check that Node.LinkTarget can handle non-utf8 characters 2023-07-23 00:05:14 +02:00
restorer Move PreallocateFile to fs package 2023-06-09 11:49:06 +03:00
selfupdate Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
test test: use standard logging methods from testing for the test helpers 2023-05-26 19:34:57 +02:00
textfile Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
ui cmd, ui: Move size parsing code and make it more robust 2023-07-02 21:44:50 +02:00
walker Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00