rest: use global context on repository creation

This commit is contained in:
Michael Eischer
2020-04-10 12:08:52 +02:00
parent 4b0fcaed45
commit 37a5e2d681
5 changed files with 10 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ func newTestSuite(ctx context.Context, t testing.TB, url *url.URL, minimalData b
// CreateFn is a function that creates a temporary repository for the tests.
Create: func(config interface{}) (restic.Backend, error) {
cfg := config.(rest.Config)
return rest.Create(cfg, tr)
return rest.Create(context.TODO(), cfg, tr)
},
// OpenFn is a function that opens a previously created temporary repository.