mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
repository: add dedicated test helper
This commit is contained in:
@@ -1421,7 +1421,7 @@ func TestArchiverSnapshot(t *testing.T) {
|
||||
}
|
||||
TestEnsureSnapshot(t, repo, snapshotID, want)
|
||||
|
||||
checker.TestCheckRepo(t, repo, false)
|
||||
checker.TestCheckRepo(t, repo)
|
||||
|
||||
// check that the snapshot contains the targets with absolute paths
|
||||
for i, target := range sn.Paths {
|
||||
@@ -1641,7 +1641,7 @@ func TestArchiverSnapshotSelect(t *testing.T) {
|
||||
}
|
||||
TestEnsureSnapshot(t, repo, snapshotID, want)
|
||||
|
||||
checker.TestCheckRepo(t, repo, false)
|
||||
checker.TestCheckRepo(t, repo)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1866,7 +1866,7 @@ func TestArchiverParent(t *testing.T) {
|
||||
t.Logf("testfs: %v", testFS)
|
||||
}
|
||||
|
||||
checker.TestCheckRepo(t, repo, false)
|
||||
checker.TestCheckRepo(t, repo)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -2021,7 +2021,7 @@ func TestArchiverErrorReporting(t *testing.T) {
|
||||
}
|
||||
TestEnsureSnapshot(t, repo, snapshotID, want)
|
||||
|
||||
checker.TestCheckRepo(t, repo, false)
|
||||
checker.TestCheckRepo(t, repo)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -2384,7 +2384,7 @@ func TestMetadataChanged(t *testing.T) {
|
||||
// make sure the content matches
|
||||
TestEnsureFileContent(context.Background(), t, repo, "testfile", node3, files["testfile"].(TestFile))
|
||||
|
||||
checker.TestCheckRepo(t, repo, false)
|
||||
checker.TestCheckRepo(t, repo)
|
||||
}
|
||||
|
||||
func TestRacyFileTypeSwap(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user