Skip to content

GitStatusCache: fix race condition in test setup#192

Merged
jamill merged 1 commit intomicrosoft:milestones/M139from
jamill:race_condition_fix_to_M139
Aug 21, 2018
Merged

GitStatusCache: fix race condition in test setup#192
jamill merged 1 commit intomicrosoft:milestones/M139from
jamill:race_condition_fix_to_M139

Conversation

@jamill
Copy link
Member

@jamill jamill commented Aug 20, 2018

This is to fix an issue that happened (intermittently) in the functional
tests. There is a race condition where the test is attempting to delete
the status cache file, but the status cache might not have been
generated for the test repository.

To fix this, the test setup will wait for the initial status cache to be
generated, so it can proceed from a known state.

(cherry picked from commit 97975e4)
(port pull request #172)

This is to fix an issue that happened (intermittently) in the functional
tests. There is a race condition where the test is attempting to delete
the status cache file, but the status cache might not have been
generated for the test repository.

To fix this, the test setup will wait for the initial status cache to be
generated, so it can proceed from a known state.

(cherry picked from commit 97975e4)
@jamill jamill merged commit c948d83 into microsoft:milestones/M139 Aug 21, 2018
@jrbriggs jrbriggs added this to the M139 milestone Aug 21, 2018
@jamill jamill deleted the race_condition_fix_to_M139 branch April 3, 2019 02:28
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.

3 participants