8000 Fix parser test for node HEAD · mysqljs/mysql@82b7429 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82b7429

Browse files
committed
Fix parser test for node HEAD
Seems like something in casting of strings to buffers has changed. Will need to investigate on older node versions.
1 parent ab90020 commit 82b7429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/simple/test-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test(function write() {
5858
assert.equal(parser.state, Parser.GREETING_SERVER_VERSION);
5959

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

0 commit comments

Comments
 (0)
0