Simplify api

This commit is contained in:
Adria Navarro 2024-11-06 14:36:18 +01:00
parent d0aab5fa87
commit 8c88d65003
1 changed files with 0 additions and 5 deletions

View File

@ -13,21 +13,16 @@ import {
const initialTime = Date.now()
async function waitForQueueCompletion() {
await DocWritethroughProcessor.queue.resume()
do {
await DocWritethroughProcessor.queue.whenCurrentJobsFinished()
} while (await DocWritethroughProcessor.queue.count())
await DocWritethroughProcessor.queue.whenCurrentJobsFinished()
await DocWritethroughProcessor.queue.pause()
}
describe("docWritethrough", () => {
beforeAll(async () => {
init()
await DocWritethroughProcessor.queue.isReady()
await DocWritethroughProcessor.queue.pause()
})
const config = new DBTestConfiguration()