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(createCollection): Db.createCollection should pass readConcern to new collection #2026

Merged
merged 13 commits into from
Jun 21, 2019
3 changes: 2 additions & 1 deletion test/functional/readconcern_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('ReadConcern', function() {

test: function(done) {
// Get a new instance
let configuration = this.configuration;
const configuration = this.configuration;
const client = configuration.newClient(
{ w: 1 },
{ poolSize: 1, readConcern: { level: 'local' }, monitorCommands: true }
rosemaryy marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -77,6 +77,7 @@ describe('ReadConcern', function() {
const collection = db.createCollection('readConcernCollection');
// Validate readConcern
expect(test).to.deep.equal({ level: 'local' }, collection.s.readConcern);
rosemaryy marked this conversation as resolved.
Show resolved Hide resolved
client.close();
rosemaryy marked this conversation as resolved.
Show resolved Hide resolved
done();
rosemaryy marked this conversation as resolved.
Show resolved Hide resolved
});
}
Expand Down