Skip to content

Commit

Permalink
chore: remove broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jan 4, 2023
1 parent bd82fc9 commit b1b2043
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions test/integration/crud/remove.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,52 +107,6 @@ describe('Remove', function () {
}
});

it('should correctly remove only first document', {
metadata: {
requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] }
},

test: function (done) {
const self = this;
const client = self.configuration.newClient(self.configuration.writeConcernMax(), {
maxPoolSize: 1
});

client.connect(function (err, client) {
const db = client.db(self.configuration.db);
expect(err).to.not.exist;

db.createCollection('shouldCorrectlyRemoveOnlyFirstDocument', function (err) {
expect(err).to.not.exist;

const collection = db.collection('shouldCorrectlyRemoveOnlyFirstDocument');

collection.insert(
[{ a: 1 }, { a: 1 }, { a: 1 }, { a: 1 }],
{ writeConcern: { w: 1 } },
function (err) {
expect(err).to.not.exist;

// Remove the first
collection.remove(
{ a: 1 },
{ writeConcern: { w: 1 }, ordered: false },
function (err, r) {
expect(r).property('deletedCount').to.equal(1);

collection.find({ a: 1 }).count(function (err, result) {
expect(result).to.equal(3);
client.close(done);
});
}
);
}
);
});
});
}
});

it('should not error on empty remove', {
metadata: {
requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] }
Expand Down

0 comments on commit b1b2043

Please sign in to comment.