From dc2e664209cd00495b5c23a7d55ae0669d915c36 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 10 Apr 2020 11:42:19 +0200 Subject: [PATCH] integration_fuse_test: use global context No need to use the TODO context. --- cmd/restic/integration_fuse_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/restic/integration_fuse_test.go b/cmd/restic/integration_fuse_test.go index 57a57ae97..3ddf33907 100644 --- a/cmd/restic/integration_fuse_test.go +++ b/cmd/restic/integration_fuse_test.go @@ -6,7 +6,6 @@ package main import ( - "context" "fmt" "os" "path/filepath" @@ -122,7 +121,7 @@ func checkSnapshots(t testing.TB, global GlobalOptions, repo *repository.Reposit } for _, id := range snapshotIDs { - snapshot, err := restic.LoadSnapshot(context.TODO(), repo, id) + snapshot, err := restic.LoadSnapshot(global.ctx, repo, id) rtest.OK(t, err) ts := snapshot.Time.Format(time.RFC3339)