diff --git a/packages/config/src/_version.ts b/packages/config/src/_version.ts index 9efb1ae1833b..9874ca34a811 100644 --- a/packages/config/src/_version.ts +++ b/packages/config/src/_version.ts @@ -1,2 +1,2 @@ // This file is auto-generated by the codegen maintenance script -export const PACKAGE_VERSION = "14.0.0-beta.1"; +export const PACKAGE_VERSION = "14.0.0-beta.3"; diff --git a/packages/zwave-js/src/lib/_version.ts b/packages/zwave-js/src/lib/_version.ts index 942315b377e0..2f88a3dfd9ac 100644 --- a/packages/zwave-js/src/lib/_version.ts +++ b/packages/zwave-js/src/lib/_version.ts @@ -1,3 +1,3 @@ // This file is auto-generated by the codegen maintenance script -export const PACKAGE_VERSION = "14.0.0-beta.1"; +export const PACKAGE_VERSION = "14.0.0-beta.3"; export const PACKAGE_NAME = "zwave-js"; diff --git a/packages/zwave-js/src/lib/driver/Task.test.ts b/packages/zwave-js/src/lib/driver/Task.test.ts index 35c2b19bce6d..6658711ec045 100644 --- a/packages/zwave-js/src/lib/driver/Task.test.ts +++ b/packages/zwave-js/src/lib/driver/Task.test.ts @@ -511,10 +511,12 @@ test("Waiting tasks are deprioritized over tasks with a higher priority", async scheduler.start(); const yieldedPromise = createDeferredPromise(); + const t1WasStarted = createDeferredPromise(); const task1 = scheduler.queueTask({ priority: TaskPriority.Normal, task: async function*() { + t1WasStarted.resolve(); order.push("1a"); yield () => yieldedPromise; order.push("1b"); @@ -522,7 +524,8 @@ test("Waiting tasks are deprioritized over tasks with a higher priority", async }, }); - await wait(1); + // The test expects that task 1 has started executing before task 2 is queued + await t1WasStarted; const task2 = scheduler.queueTask({ priority: TaskPriority.High, @@ -1208,9 +1211,12 @@ test("The task rejection uses the given error, if any", async (t) => { const order: string[] = []; scheduler.start(); + const t1WasStarted = createDeferredPromise(); + const task1 = scheduler.queueTask({ priority: TaskPriority.Normal, task: async function*() { + t1WasStarted.resolve(); order.push("1a"); yield () => wait(10); order.push("1b"); @@ -1222,8 +1228,8 @@ test("The task rejection uses the given error, if any", async (t) => { }, }); - await wait(1); - // The task should have run to the first yield + // task 1 has run to the first yield + await t1WasStarted; t.expect(order).toStrictEqual(["1a"]); await scheduler.removeTasks(