Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NODE-4103): respect BSON options when creating change streams #3247

Merged
merged 9 commits into from
May 23, 2022
5 changes: 3 additions & 2 deletions test/integration/change-streams/change_stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1993,17 +1993,18 @@ describe('Change Streams', function () {
)
.run();

describe('BSON Options', function () {
describe.only('BSON Options', function () {
baileympearson marked this conversation as resolved.
Show resolved Hide resolved
let client: MongoClient;
let db: Db;
let collection: Collection;
let cs: ChangeStream;
beforeEach(async function () {
client = await this.configuration.newClient({ monitorCommands: true }).connect();
db = client.db('db');
collection = db.collection('collection');
collection = await db.createCollection('collection');
});
afterEach(async function () {
db.dropCollection('collection');
baileympearson marked this conversation as resolved.
Show resolved Hide resolved
await cs.close();
await client.close();
client = undefined;
Expand Down