2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-29 08:14:03 +00:00
restic/internal/backend/test
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
..
benchmarks.go backend: use generic instead of any type for test suite 2023-06-07 22:31:14 +02:00
config.go backend: let ParseConfig return a Config pointer 2023-06-07 22:31:15 +02:00
doc.go gofmt all files 2022-08-19 19:12:26 +02:00
suite.go backend: Adjust tests to use the Factory to instantiate the backend 2023-06-17 15:15:58 +02:00
tests.go backend: Fix unreliable TestListCancel/Timeout test 2023-07-23 11:47:56 +02:00