From d1cdbbb98098919393377fc0644b8dfca47a604d Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Mon, 17 Jun 2024 12:06:10 +0200 Subject: [PATCH] fix: preserve priority and tag when cloning transaction --- packages/zwave-js/src/lib/driver/Transaction.ts | 2 ++ .../zwave-js/src/lib/test/driver/nodeAsleepNoReject.test.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/zwave-js/src/lib/driver/Transaction.ts b/packages/zwave-js/src/lib/driver/Transaction.ts index 393e098096c9..46c7cd8bcceb 100644 --- a/packages/zwave-js/src/lib/driver/Transaction.ts +++ b/packages/zwave-js/src/lib/driver/Transaction.ts @@ -80,6 +80,8 @@ export class Transaction implements Comparable { "creationTimestamp", "changeNodeStatusOnTimeout", "pauseSendThread", + "priority", + "tag", "requestWakeUpOnDemand", ] as const ) { diff --git a/packages/zwave-js/src/lib/test/driver/nodeAsleepNoReject.test.ts b/packages/zwave-js/src/lib/test/driver/nodeAsleepNoReject.test.ts index 19bfb9b6d99e..ccf364258096 100644 --- a/packages/zwave-js/src/lib/test/driver/nodeAsleepNoReject.test.ts +++ b/packages/zwave-js/src/lib/test/driver/nodeAsleepNoReject.test.ts @@ -63,6 +63,7 @@ integrationTest( const sendQueue = driver["queue"]; driver.driverLog.sendQueue(sendQueue); t.is(sendQueue.length, 2); + // with priority WakeUp t.is( sendQueue.transactions.get(0)?.priority, MessagePriority.WakeUp,