-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test using custom port mapping when running specs in parallel
Using a global counter currently does not work because Ginkgo runs parallel specs by isolating them in completely different processes [1]. This relies on the parallel process index returned by Ginkgo to get a value that can be used as starting port. Callers can then safely increment this value if needed in the specs to get a different custom value. [1] https://onsi.github.io/ginkgo/#mental-model-how-ginkgo-runs-parallel-specs
- Loading branch information
Showing
3 changed files
with
29 additions
and
23 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