Remove some unused assignments
This commit is contained in:
parent
eba5dd831f
commit
1579d2a8ec
3 changed files with 2 additions and 3 deletions
|
@ -44,7 +44,6 @@ func createFileSetPerHardlink(dir string) map[uint64][]string {
|
||||||
}
|
}
|
||||||
for i, f := range files {
|
for i, f := range files {
|
||||||
linkTests[uint64(i)] = append(linkTests[uint64(i)], f.Name())
|
linkTests[uint64(i)] = append(linkTests[uint64(i)], f.Name())
|
||||||
i++
|
|
||||||
}
|
}
|
||||||
return linkTests
|
return linkTests
|
||||||
}
|
}
|
||||||
|
|
|
@ -1590,7 +1590,7 @@ func TestDiff(t *testing.T) {
|
||||||
rtest.OK(t, os.Mkdir(modfile+"4", 0755))
|
rtest.OK(t, os.Mkdir(modfile+"4", 0755))
|
||||||
|
|
||||||
testRunBackup(t, "", []string{datadir}, opts, env.gopts)
|
testRunBackup(t, "", []string{datadir}, opts, env.gopts)
|
||||||
snapshots, secondSnapshotID := lastSnapshot(snapshots, loadSnapshotMap(t, env.gopts))
|
_, secondSnapshotID := lastSnapshot(snapshots, loadSnapshotMap(t, env.gopts))
|
||||||
|
|
||||||
_, err := testRunDiffOutput(env.gopts, "", secondSnapshotID)
|
_, err := testRunDiffOutput(env.gopts, "", secondSnapshotID)
|
||||||
rtest.Assert(t, err != nil, "expected error on invalid snapshot id")
|
rtest.Assert(t, err != nil, "expected error on invalid snapshot id")
|
||||||
|
|
|
@ -2094,7 +2094,7 @@ func TestMetadataChanged(t *testing.T) {
|
||||||
want.Group = ""
|
want.Group = ""
|
||||||
|
|
||||||
// make another snapshot
|
// make another snapshot
|
||||||
snapshotID, node3 := snapshot(t, repo, fs, snapshotID, "testfile")
|
_, node3 := snapshot(t, repo, fs, snapshotID, "testfile")
|
||||||
// Override username and group to empty string - in case underlying system has user with UID 51234
|
// Override username and group to empty string - in case underlying system has user with UID 51234
|
||||||
// See https://github.com/restic/restic/issues/2372
|
// See https://github.com/restic/restic/issues/2372
|
||||||
node3.User = ""
|
node3.User = ""
|
||||||
|
|
Loading…
Reference in a new issue