mirror of
https://github.com/restic/restic.git
synced 2025-12-04 00:31:48 +00:00
backend: pass context into every backend constructor
This commit is contained in:
@@ -39,7 +39,7 @@ func newTestSuite(t testing.TB) *test.Suite[rclone.Config] {
|
||||
// OpenFn is a function that opens a previously created temporary repository.
|
||||
Open: func(cfg rclone.Config) (restic.Backend, error) {
|
||||
t.Logf("Open()")
|
||||
return rclone.Open(cfg, nil)
|
||||
return rclone.Open(context.TODO(), cfg, nil)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user