update readme to include mention of nedb-promises & bump reloadTimeUpperBound to avoid tests failing randomly

Timothée Rebours 3 years ago
parent ba5a420078
commit ee67e1fa79
  1. 1
      README.md
  2. 2
      test/db.async.test.js
  3. 2
      test/db.test.js

@ -852,6 +852,7 @@ kind of datasets (20MB for 10,000 2KB documents).
## Use in other services
* An ODM for NeDB: [follicle](https://github.com/seald/follicle)
* A layer to add a promise-only interface: [nedb-promises](https://www.npmjs.com/package/nedb-promises)
## Modernization

@ -8,7 +8,7 @@ const Datastore = require('../lib/datastore')
const Persistence = require('../lib/persistence')
const { wait } = require('./utils.test')
const { exists } = require('./utils.test.js')
const reloadTimeUpperBound = 60 // In ms, an upper bound for the reload time used to check createdAt and updatedAt
const reloadTimeUpperBound = 200 // In ms, an upper bound for the reload time used to check createdAt and updatedAt
describe('Database async', function () {
let d

@ -8,7 +8,7 @@ const model = require('../lib/model')
const Datastore = require('../lib/datastore')
const Persistence = require('../lib/persistence')
const { callbackify } = require('util')
const reloadTimeUpperBound = 60 // In ms, an upper bound for the reload time used to check createdAt and updatedAt
const reloadTimeUpperBound = 200 // In ms, an upper bound for the reload time used to check createdAt and updatedAt
const { assert } = chai
chai.should()

Loading…
Cancel
Save