mirror of https://github.com/restic/restic.git
4a33370072
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. |
||
---|---|---|
.. | ||
azure | ||
b2 | ||
dryrun | ||
gs | ||
layout | ||
limiter | ||
local | ||
location | ||
logger | ||
mem | ||
mock | ||
rclone | ||
rest | ||
retry | ||
s3 | ||
sema | ||
sftp | ||
swift | ||
test | ||
testdata | ||
doc.go | ||
errdot_119.go | ||
errdot_old.go | ||
foreground.go | ||
foreground_sysv.go | ||
foreground_test.go | ||
foreground_unix.go | ||
foreground_windows.go | ||
http_transport.go | ||
paths.go | ||
readerat.go | ||
shell_split.go | ||
shell_split_test.go | ||
utils.go | ||
utils_test.go |