forked from hashicorp/terraform-ls
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/state: avoid deadlock caused by mid-flight job change (hashi…
…corp#818) * internal/scheduler: add test to exercise both open & closed dirs together Multiple runs may be necessary to trigger the bug, 10 seems to be enough to do so in my environment: go test ./internal/scheduler -run=TestScheduler_closedAndOpen -count=10 -timeout=3s * internal/state: retry awaitNextJob if job not found or already running
- Loading branch information
1 parent
69af6c7
commit 4f16943
Showing
3 changed files
with
189 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters