Skip to content

Commit

Permalink
Merge pull request #310 Add wait for background operations to complet…
Browse files Browse the repository at this point in the history
…e in modified paths test

Add wait for background operations to complete in modified paths test
  • Loading branch information
Kevin Willford authored Sep 28, 2018
2 parents c1b7dfc + 6c38d6c commit 0465c34
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public void ModifiedPathsCorrectAfterHardLinking(FileSystemRunner fileSystem)
fileSystem.CreateHardLink(hardLinkOutsideRepoToFileInRepoPath, secondFileInRepoPath);
hardLinkOutsideRepoToFileInRepoPath.ShouldBeAFile(fileSystem).WithContents(contents);

this.Enlistment.WaitForBackgroundOperations().ShouldEqual(true, "Background operations failed to complete.");

string modifiedPathsDatabase = Path.Combine(this.Enlistment.DotGVFSRoot, TestConstants.Databases.ModifiedPaths);
modifiedPathsDatabase.ShouldBeAFile(fileSystem);
using (StreamReader reader = new StreamReader(File.Open(modifiedPathsDatabase, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
Expand Down

0 comments on commit 0465c34

Please sign in to comment.