mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 02:48:55 +00:00
add context to repo.Flush() call in test code
gh-1434
This commit is contained in:
parent
be24237063
commit
20d78ab0d9
@ -90,7 +90,7 @@ func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (rest
|
||||
|
||||
treeID := saveDir(t, repo, snapshot.Nodes)
|
||||
|
||||
err := repo.Flush()
|
||||
err := repo.Flush(ctx)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user