mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
added test for parameterstatus message
This commit is contained in:
parent
94edc2583e
commit
0ca7b93bb0
@ -7,6 +7,12 @@ test('Parser on single messages', function() {
|
||||
assert.equal(result.length, 8);
|
||||
});
|
||||
|
||||
test('parses ParameterStatus message', function() {
|
||||
var firstString = [0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0];
|
||||
var secondString = [0x55, 0x54, 0x46, 0x38, 0];
|
||||
var bytes = [53, 0, 0, 0, 0x19].concat(firstString).concat(secondString);
|
||||
var result = Parser.parse(Buffer(bytes));
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user