fix protocol test.

This commit is contained in:
Christopher Jeffrey 2016-01-10 04:59:26 -08:00
parent eb1a3ea6d2
commit 9459e278ca

View File

@ -15,7 +15,7 @@ describe('Protocol', function() {
function packetTest(command, payload, test) {
it('should encode/decode ' + command, function(cb) {
var ver = framer[command](payload);
var ver = new Buffer(framer[command](payload));
parser.once('packet', function(packet) {
assert.equal(packet.cmd, command);
test(packet.payload);