Skip to content

Commit

Permalink
test(bulkWrites): fix bulkWrite test to properly test ordered
Browse files Browse the repository at this point in the history
  • Loading branch information
daprahamian committed Apr 15, 2019
1 parent 5e773cc commit f35eecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/bulk_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ describe('Bulk', function() {
});

it('should properly account for array key size in bulk unordered inserts', function(done) {
const client = this.configuration.newClient({ w: 1 }, { monitorCommands: true });
const client = this.configuration.newClient();
const documents = new Array(20000).fill('').map(() => ({
arr: new Array(19).fill('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
}));
Expand All @@ -1537,7 +1537,7 @@ describe('Bulk', function() {
.then(() => {
const coll = db.collection('doesnt_matter');

coll.insert(documents, { ordered: false }, err => {
coll.insertMany(documents, { ordered: false }, err => {
client.close(() => {
done(err);
});
Expand Down Expand Up @@ -1566,7 +1566,7 @@ describe('Bulk', function() {
.then(() => {
const coll = db.collection('doesnt_matter');

coll.insert(documents, { ordered: false }, err => {
coll.insertMany(documents, { ordered: true }, err => {
client.close(() => {
done(err);
});
Expand Down

0 comments on commit f35eecf

Please sign in to comment.