slouch/test/node-and-browser.js
Geoff Cox 4f8d22e119 fix(test): race conditions (#35)
* test(exclude-design-docs): cannot guarantee order

* fix(test): 10s is not always long enough

* fix(test): 15s is not always long enough
2017-10-06 14:51:39 -07:00

20 lines
388 B
JavaScript

'use strict';
var chai = require('chai');
chai.use(require('chai-as-promised'));
chai.should();
var config = require('./config.json');
if (process.env.COUCHDB_PORT) {
config.couchdb.port = process.env.COUCHDB_PORT;
}
describe('slouch', function () {
// Sometimes the DB gets a little backed up so we need more time for our tests
this.timeout(20000);
require('./spec');
});