forked from TrueCloudLab/restic
restorer: Run tests in the same package
This commit is contained in:
parent
4f6d2502f7
commit
57636a4573
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
package restorer_test
|
package restorer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -13,7 +13,6 @@ import (
|
||||||
"github.com/restic/restic/internal/fs"
|
"github.com/restic/restic/internal/fs"
|
||||||
"github.com/restic/restic/internal/repository"
|
"github.com/restic/restic/internal/repository"
|
||||||
"github.com/restic/restic/internal/restic"
|
"github.com/restic/restic/internal/restic"
|
||||||
"github.com/restic/restic/internal/restorer"
|
|
||||||
rtest "github.com/restic/restic/internal/test"
|
rtest "github.com/restic/restic/internal/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -301,7 +300,7 @@ func TestRestorer(t *testing.T) {
|
||||||
_, id := saveSnapshot(t, repo, test.Snapshot)
|
_, id := saveSnapshot(t, repo, test.Snapshot)
|
||||||
t.Logf("snapshot saved as %v", id.Str())
|
t.Logf("snapshot saved as %v", id.Str())
|
||||||
|
|
||||||
res, err := restorer.NewRestorer(repo, id)
|
res, err := NewRestorer(repo, id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -422,7 +421,7 @@ func TestRestorerRelative(t *testing.T) {
|
||||||
_, id := saveSnapshot(t, repo, test.Snapshot)
|
_, id := saveSnapshot(t, repo, test.Snapshot)
|
||||||
t.Logf("snapshot saved as %v", id.Str())
|
t.Logf("snapshot saved as %v", id.Str())
|
||||||
|
|
||||||
res, err := restorer.NewRestorer(repo, id)
|
res, err := NewRestorer(repo, id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue