Bulk inserts work as expected

pull/2/head
Louis Chatriot 11 years ago
parent c0baaede1a
commit e5b57799e9
  1. 2
      test/db.test.js

@ -205,7 +205,7 @@ describe('Database', function () {
});
it('If a bulk insert violates a constraint, all changes are rolled back', function (done) {
var docs = [{ a: 5, b: 'hello' }, { a: 42, b: 'world' }, { a: 5, b: 'bloup' }];
var docs = [{ a: 5, b: 'hello' }, { a: 42, b: 'world' }, { a: 5, b: 'bloup' }, { a: 7 }];
d.ensureIndex({ fieldName: 'a', unique: true });

Loading…
Cancel
Save