Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix connection.parse.js test for node-mqtt-packet 7.1.1 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions test/connection.parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ module.exports = function () {
var expected = {
cmd: 'pubrel',
retain: false,
qos: 0,
qos: 1,
dup: false,
length: 2,
messageId: 4,
Expand All @@ -409,7 +409,7 @@ module.exports = function () {
}

var fixture = [
96, 2, // Header
98, 2, // Header
0, 4 // Message id
]

Expand Down Expand Up @@ -537,17 +537,17 @@ module.exports = function () {
retain: false,
qos: 0,
dup: false,
length: 6,
granted: [0, 1, 2, 128],
length: 5,
granted: [0, 1, 2],
messageId: 6,
topic: null,
payload: null
}

var fixture = [
144, 6, // Header
144, 5, // Header
0, 6, // Message id
0, 1, 2, 128 // Granted qos (0, 1, 2) and a rejected being 0x80
0, 1, 2 // Granted qos (0, 1, 2)
]

this.stream.write(Buffer.from(fixture))
Expand Down