[SERVER-47321] autocomplete.js test must not override global db object Created: 03/Apr/20  Updated: 03/Apr/20  Resolved: 03/Apr/20

Status: Closed
Project: Core Server
Component/s: Shell, Testing Infrastructure
Affects Version/s: 4.5 Desired, 4.2.5, 4.0.17, 4.3.5
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-44115 Exclude jstests/core/autocomplete.js ... Closed
Operating System: ALL
Sprint: Sharding 2020-04-06
Participants:
Linked BF Score: 45

 Description   

autocomplete.js test is run in the parallel suites, thus it cannot override the global db object.
It should use a scoped variable as testing db



 Comments   
Comment by Tommaso Tocci [ 03/Apr/20 ]

The bug will be fixed by  BACKPORT-6595

Comment by Max Hirschhorn [ 03/Apr/20 ]

It turns out the changes from 7e4f627 as part of SERVER-34614 reset the global db object to have a new Mongo connection object, but has it continue to use its current database name.

Generated at Thu Feb 08 05:13:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.