[SERVER-38181] Modernize jstests/core/index_elemmatch1.js and reduce size of data set Created: 16/Nov/18  Updated: 29/Oct/23  Resolved: 16/Nov/18

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

Type: Improvement Priority: Major - P3
Reporter: James Wahlin Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 12

 Description   

If updating we should:

  • modernize test structure, variable declaration and naming
  • remove dead code (nscannedForCursor() function)
  • wrap database statements with assert.commandWorked
  • reduce the size of the data set (from 10K docs to 100)
  • remove print statements
  • remove tests that do not actually test find with $elemMatch with an index in place
     


 Comments   
Comment by Githook User [ 16/Nov/18 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: SERVER-38181 modernize jstests/core/index_elemmatch1.js and reduce data size
Branch: master
https://github.com/mongodb/mongo/commit/910a0bda4c434571600e67d78afb2424dc94eaaa

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