Use the paralleltest linter to check for parallelized test bugs

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Add the "paralleltest" linter to the list of linters run with golangci-lint. That linter reports when tests don't call t.Parallel() to run subtests in parallel and when t.Parallel() is used incorrectly (e.g. without capturing the test case for loop variable). We have a lot of tests that can't currently be parallelized, so configure the linter to only check for incorrect usage, not missing t.Parallel() calls.

              Assignee:
              Matt Dale
              Reporter:
              Matt Dale
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: