MongoDB v8 regression - server not throwing on invalid database name

Hi there,

We’ve found a minor regression in moving to MongoDB v8. We have some edge case tests that are failing on v8, but not v5-7.

Here is a summary of the issue:

FAIL  tests/dev/integration/db/database.interface.integration.test.ts
  ● The database interface › Find() method should › throw an error for › a query in an invalid database name
  ● The database interface › getById() method should › throw an error for › a query in an invalid database name

The database name provided in the tests is “$database” and is expected to throw.