forked from TrueCloudLab/restic
Refactor
This commit is contained in:
parent
022f514b09
commit
e8b83e460f
8 changed files with 80 additions and 111 deletions
|
@ -16,11 +16,12 @@ func TestSnapshot(t *testing.T) {
|
|||
ok(t, err)
|
||||
}()
|
||||
|
||||
sn := repo.NewSnapshot("/home/foobar")
|
||||
sn := khepri.NewSnapshot("/home/foobar")
|
||||
sn.Tree, err = khepri.ParseID("c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2")
|
||||
ok(t, err)
|
||||
sn.Time, err = time.Parse(time.RFC3339Nano, "2014-08-03T17:49:05.378595539+02:00")
|
||||
ok(t, err)
|
||||
|
||||
ok(t, sn.Save())
|
||||
_, err = sn.Save(repo)
|
||||
ok(t, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue