Skip to content

Commit

Permalink
Fix parser test for node HEAD
Browse files Browse the repository at this point in the history
Seems like something in casting of strings to buffers has changed. Will
need to investigate on older node versions.
  • Loading branch information
felixge committed Oct 25, 2010
1 parent ab90020 commit 82b7429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/simple/test-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test(function write() {
assert.equal(parser.state, Parser.GREETING_SERVER_VERSION);

var VERSION = 'MySql 5.1';
parser.write(new Buffer(VERSION+'\0'));
parser.write(new Buffer(VERSION+'\0\0'));
assert.equal(packet.serverVersion, VERSION);
assert.equal(parser.state, Parser.GREETING_THREAD_ID);

Expand Down

0 comments on commit 82b7429

Please sign in to comment.