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

Use the paralleltest linter to check for parallelized test bugs

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Unknown Unknown
    • None
    • None
    • Testing
    • None
    • Not Needed

    Description

      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.

      Attachments

        Activity

          People

            matt.dale@mongodb.com Matt Dale
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: