fix(db): under mac and linux using alternative pool mechanism
this must fix test brokeup and closing stub
This commit is contained in:
@ -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()
|
||||
})
|
||||
});
|
||||
|
Reference in New Issue
Block a user