mirror of
https://github.com/restic/restic.git
synced 2026-08-06 13:43:18 +00:00
repository: move lock file handling from restic package
This commit is contained in:
@@ -158,11 +158,6 @@ func BenchmarkAllVersions(b *testing.B, bench VersionedBenchmark) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewLock(_ *testing.T, repo *Repository, exclusive bool) (*restic.Lock, error) {
|
||||
// TODO get rid of this test helper
|
||||
return restic.NewLock(context.TODO(), &internalRepository{repo}, exclusive)
|
||||
}
|
||||
|
||||
// TestCheckRepo runs the checker on repo.
|
||||
func TestCheckRepo(t testing.TB, repo *Repository) {
|
||||
chkr := newChecker(repo)
|
||||
|
||||
Reference in New Issue
Block a user