Skip to content

Commit

Permalink
fix: preserve priority and tag when cloning transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jun 17, 2024
1 parent 18595b9 commit d1cdbbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/zwave-js/src/lib/driver/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export class Transaction implements Comparable<Transaction> {
"creationTimestamp",
"changeNodeStatusOnTimeout",
"pauseSendThread",
"priority",
"tag",
"requestWakeUpOnDemand",
] as const
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d1cdbbb

Please sign in to comment.