Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2569

Use the paralleltest linter to check for parallelized test bugs

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

      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@mongodb.com Matt Dale
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: