Skip to content

Fix a flaky test involving the background prefetch thread#307

Merged
derrickstolee merged 1 commit intomicrosoft:masterfrom
derrickstolee:background-flaky
Sep 27, 2018
Merged

Fix a flaky test involving the background prefetch thread#307
derrickstolee merged 1 commit intomicrosoft:masterfrom
derrickstolee:background-flaky

Conversation

@derrickstolee
Copy link
Contributor

The functional test PrefetchCleansUpStalePrefetchLock intends to check the multi-pack-index and commit-graph are completely written after a prefetch. However, this can fail if the test is faster than the background thread in the mount process.

This change introduces a 500ms pause in the test to ensure we give adequate time to the mount process before verifying the background thread did its work.

@derrickstolee derrickstolee merged commit c1b7dfc into microsoft:master Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants