Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6804 Add a test to prevent unhandled rejections from passing tests
  3. NODE-6845

Convert unhandled rejections into uncaught errors to surface them in testing

    • Type: Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.15.0
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      Our unhandled rejections are swallowed currently
      Add a listener to turn them into uncaught errors.

      User Experience

      • There are some unhandled rejections with promises created internally in the driver

      Dependencies

      • None

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Add listener to convert errors
      • Correct unhandled rejections in the driver
      • Correct unhandled rejections in test code

      Testing Requirements

      • All tests pass

      Documentation Requirements

      • None

      Follow Up Requirements

      • None

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: