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

Tests in jscore should not use jsTest.name() for its collection name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.6
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query 2017-04-17
    • Linked BF Score:
      0

      Description

      The tests projection_dotted_paths.js and explain_agg_write_concern.js both do something like

      let coll = db.getSiblingDB("blah").getCollection(jsTest.name());
      coll.drop()
      

      This is unfortunate because, in the parallel suite, the name of the test is "basicPlus", which means that the two tests will conflict with each other and drop each other's data.

        Attachments

          Activity

            People

            Assignee:
            kyle.suarez Kyle Suarez
            Reporter:
            kyle.suarez Kyle Suarez
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: