Skip to content

Test refactor: minimize number of created collections #8481

@vkarpov15

Description

@vkarpov15

Now that mmapv1 is gone, we have to use WT for tests, and the problem there is that dropDatabase() is very slow on WT, particularly if you're running a replica set and have a lot of collections. On slower machines, it can take over a minute to drop all the collections our tests create. In order to make tests more portable and minimize the amount of tuning we need to do to run the tests, we should reuse collections where possible, and drop() collections in between individual tests so we don't need to wait for an entire dropDatabase().

Metadata

Metadata

Assignees

No one assigned

    Labels

    developer-experienceThis issue improves error messages, debugging, or reporting

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions