diff --git a/cmd/restic/integration_test.go b/cmd/restic/integration_test.go index c2d5f7197..fa95eca92 100644 --- a/cmd/restic/integration_test.go +++ b/cmd/restic/integration_test.go @@ -18,6 +18,7 @@ import ( "github.com/restic/restic/backend" "github.com/restic/restic/debug" "github.com/restic/restic/filter" + "github.com/restic/restic/repository" . "github.com/restic/restic/test" ) @@ -683,3 +684,8 @@ func TestRebuildIndex(t *testing.T) { } }) } + +func TestRebuildIndexAlwaysFull(t *testing.T) { + repository.IndexFull = func(*repository.Index) bool { return true } + TestRebuildIndex(t) +}