2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 04:45:15 +00:00
restic/internal/backend
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
..
azure azure: Support authentication using managed / workload identity 2023-07-09 14:47:03 +02:00
b2 Fix linter warnings 2023-06-17 15:15:58 +02:00
dryrun Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00
gs Fix linter warnings 2023-06-17 15:15:58 +02:00
layout Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00
limiter local/sftp: move limiter setup into backend 2023-06-17 15:15:58 +02:00
local backend: Hardcode backend scheme in Factory 2023-06-17 15:15:58 +02:00
location backend: Hardcode backend scheme in Factory 2023-06-17 15:15:58 +02:00
logger migrations: Fix S3 backend detection 2023-04-14 22:32:16 +02:00
mem backend: Hardcode backend scheme in Factory 2023-06-17 15:15:58 +02:00
mock backend: remove Test method 2022-12-03 11:28:10 +01:00
rclone backend: Hardcode backend scheme in Factory 2023-06-17 15:15:58 +02:00
rest rest: use http status code constants 2023-07-14 22:39:38 +02:00
retry Rename unused testing parameter to _ 2023-05-18 21:17:53 +02:00
s3 s3: restore retries for minio tests 2023-06-17 15:25:08 +02:00
sema backend/sema: add test for freeze functionality 2023-07-22 23:23:17 +02:00
sftp backend: Hardcode backend scheme in Factory 2023-06-17 15:15:58 +02:00
swift backend: Hardcode backend scheme in Factory 2023-06-17 15:15:58 +02:00
test backend: Fix unreliable TestListCancel/Timeout test 2023-07-23 11:47:56 +02:00
testdata Moves files 2017-07-23 14:19:13 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
errdot_119.go rclone/sftp: Improve handling of ErrDot errors 2022-09-25 16:19:03 +02:00
errdot_old.go rclone/sftp: Improve handling of ErrDot errors 2022-09-25 16:19:03 +02:00
foreground_sysv.go add go:build headers everywhere 2022-03-28 22:23:47 +02:00
foreground_test.go add go:build headers everywhere 2022-03-28 22:23:47 +02:00
foreground_unix.go backend: Use IoctlSetPointerInt for tcsetpgrp 2023-05-25 17:31:51 +02:00
foreground_windows.go Fix rclone (scoop shim) and sftp issue due to detached console on Windows 2022-04-03 17:53:17 +08:00
foreground.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +01:00
http_transport.go Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
paths.go backend: remove unused Paths variable 2022-10-21 21:36:05 +02:00
readerat.go backend: extract readerat from restic package 2022-07-17 15:29:09 +02:00
shell_split_test.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
shell_split.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
utils_test.go Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
utils.go backend: deduplicate implementation of Delete() method 2023-04-14 22:32:15 +02:00