diff options
author | Alexander Neumann <alexander@bumpern.de> | 2018-07-21 20:56:38 +0200 |
---|---|---|
committer | Alexander Neumann <alexander@bumpern.de> | 2018-07-21 23:24:40 +0200 |
commit | 74016d59813fa838b71c6be60c387026b4d18ab3 (patch) | |
tree | 9b8772e03220099b5db339e4374087dc00b417a2 /internal/restorer/restorer_test.go | |
parent | 57636a45733256e71b9331885e4ee779d0bc954b (diff) |
restorer: Fix return of saveSnapshot
Diffstat (limited to 'internal/restorer/restorer_test.go')
-rw-r--r-- | internal/restorer/restorer_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/restorer/restorer_test.go b/internal/restorer/restorer_test.go index 1957df14a..02fc74a3c 100644 --- a/internal/restorer/restorer_test.go +++ b/internal/restorer/restorer_test.go @@ -91,7 +91,7 @@ func saveDir(t testing.TB, repo restic.Repository, nodes map[string]Node) restic return id } -func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (restic.Repository, restic.ID) { +func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (*restic.Snapshot, restic.ID) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() @@ -118,7 +118,7 @@ func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot) (rest t.Fatal(err) } - return repo, id + return sn, id } // toSlash converts the OS specific path dir to a slash-separated path. |