2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

add context to repo.Flush() call in test code

gh-1434
This commit is contained in:
George Armhold 2017-12-03 07:32:50 -05:00
parent be24237063
commit 20d78ab0d9

View File

@ -90,7 +90,7 @@ func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (rest
treeID := saveDir(t, repo, snapshot.Nodes) treeID := saveDir(t, repo, snapshot.Nodes)
err := repo.Flush() err := repo.Flush(ctx)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }