[SERVER-28558] Tests in jscore should not use jsTest.name() for its collection name Created: 30/Mar/17  Updated: 06/Dec/17  Resolved: 31/Mar/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.5.6

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Kyle Suarez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2017-04-17
Participants:
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.



 Comments   
Comment by Githook User [ 31/Mar/17 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'kyle.suarez@mongodb.com'}

Message: SERVER-28558 tests must not use jsTest.name() as a collection name

Doing so will cause tests to use the same collection in the parallel suite, where the name of the
test could be "basicPlus".
Branch: master
https://github.com/mongodb/mongo/commit/03945fa420fd22a690151593e8afc88bda3008bf

Generated at Thu Feb 08 04:18:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.