Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1136

refactor mock server to track individual mock servers to reduce flakiness

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Mock servers must be manually and explicitly destroyed at the end of each test. Now that we use mocha, we can utilize test hooks in order to manage our state more effectively. Not only does this mean we can centralize where mock servers are cleaned up (in the mock module itself), but we can also ensure that when one test fails it does not bring down the rest of the batch (because they tend to use the same port numbers).

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: