diff --git a/GVFS/GVFS.FunctionalTests/Tests/EnlistmentPerFixture/PrefetchVerbWithoutSharedCacheTests.cs b/GVFS/GVFS.FunctionalTests/Tests/EnlistmentPerFixture/PrefetchVerbWithoutSharedCacheTests.cs index 8903d5f2d..c73350930 100644 --- a/GVFS/GVFS.FunctionalTests/Tests/EnlistmentPerFixture/PrefetchVerbWithoutSharedCacheTests.cs +++ b/GVFS/GVFS.FunctionalTests/Tests/EnlistmentPerFixture/PrefetchVerbWithoutSharedCacheTests.cs @@ -71,6 +71,12 @@ public void PrefetchBuildsIdxWhenMissingFromPrefetchPack() this.fileSystem.DeleteFile(idxPath); idxPath.ShouldNotExistOnDisk(this.fileSystem); + // Remove midx that contains references to the pack + string midxPath = Path.Combine(this.Enlistment.GetObjectRoot(this.fileSystem), "pack", "multi-pack-index"); + File.SetAttributes(midxPath, FileAttributes.Normal); + this.fileSystem.DeleteFile(midxPath); + midxPath.ShouldNotExistOnDisk(this.fileSystem); + // Prefetch should rebuild the missing idx this.Enlistment.Prefetch("--commits"); this.PostFetchJobShouldComplete();