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

Added test for the suback response return code 0x80 rejected. #174

Closed
Closed
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
8 changes: 4 additions & 4 deletions test/connection.parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,15 @@ module.exports = function() {
retain: false,
qos: 0,
dup: false,
length: 5,
granted: [0, 1, 2],
length: 6,
granted: [0, 1, 2, 128],
messageId: 6
};

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

this.stream.write(new Buffer(fixture));
Expand Down