fix(db): under mac and linux using alternative pool mechanism

this must fix test brokeup and closing stub
This commit is contained in:
Alexey Kasyanchuk
2018-08-07 17:21:46 +03:00
parent 725632e709
commit 297baac3d3
5 changed files with 96 additions and 21 deletions

View File

@ -8,8 +8,8 @@ const forBigTable = require('../src/background/forBigTable')
describe("big table for check", () => {
let sphinx;
it("init", function() {
sphinx = pool()
it("init", async function() {
sphinx = await pool()
expect(sphinx)
})
@ -36,4 +36,8 @@ describe("big table for check", () => {
await forBigTable(sphinx, 'feed', record => records.push(record), null, 15)
expect(records.length === 13)
})
it("close", async function() {
await sphinx.end()
})
});