Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59853

Simplify $lookup and $unionWith tests to avoid needing manual disposal

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

      Currently a bunch of our unit tests for $lookup end with a line calling dispose, like this one.

      This is a nuisance for readers and authors. It's easy to forget, and doesn't really add anything to the test. We should look into having a helper method return a $lookup stage via a unique_ptr with a custom destructor/deleter like Pipeline has or to use a ScopeGuard or something else to make this more automatic and less of a distraction.

            Assignee:
            henri.nikku@mongodb.com Henri Nikku
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: