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

Use actual timeouts in tests for context.Context objects

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • 0.0.2
    • Testing
    • None

    Description

      Currently many tests use a context.Background() during their execution. This can cause problems if there is a bug in implementation because it can be difficult to find where a deadlock is occurring. We should ensure that all things that take a context.Context are given a context with a reasonable timeout. Seeing as the maximum time for running tests is 60 seconds in most cases, this timeout should be significantly less than that.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: