From ee67e1fa79d59db1cecaf4e2d3da38ac33643b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Rebours?= Date: Tue, 18 Jan 2022 09:20:51 +0100 Subject: [PATCH] update readme to include mention of nedb-promises & bump reloadTimeUpperBound to avoid tests failing randomly --- README.md | 1 + test/db.async.test.js | 2 +- test/db.test.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebe2903..7ca048c 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/test/db.async.test.js b/test/db.async.test.js index 3482142..3da4b26 100644 --- a/test/db.async.test.js +++ b/test/db.async.test.js @@ -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 diff --git a/test/db.test.js b/test/db.test.js index 11e2387..70c9561 100755 --- a/test/db.test.js +++ b/test/db.test.js @@ -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()