repository: make repo.Options configurable for test repos

This commit is contained in:
Michael Eischer
2024-02-03 17:47:36 +01:00
parent bb92b487f7
commit 16e3f79e8b
5 changed files with 9 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ func (be *failLockLoadingBackend) Load(ctx context.Context, h backend.Handle, le
func TestMultipleLockFailure(t *testing.T) {
be := &failLockLoadingBackend{Backend: mem.New()}
repo := repository.TestRepositoryWithBackend(t, be, 0)
repo := repository.TestRepositoryWithBackend(t, be, 0, repository.Options{})
restic.TestSetLockTimeout(t, 5*time.Millisecond)
lock1, err := restic.NewLock(context.TODO(), repo)