From fd89de6232eff11773e3b3d0ffc07a7617341313 Mon Sep 17 00:00:00 2001 From: Filipe Martins Date: Mon, 10 Aug 2015 16:48:22 -0300 Subject: [PATCH] Update server.js Fixes index iteration on Int32Array type. --- test/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/server.js b/test/server.js index 69a594f97..139f2cf2b 100644 --- a/test/server.js +++ b/test/server.js @@ -1049,7 +1049,7 @@ describe('server', function () { socket.on('open', function () { socket.on('message', function(msg) { - for (var i = 0, ii = 0; i < binaryData.length; i += 4, ii++) { + for (var i = 0, ii = 0; ii < binaryData.length; i += 4, ii++) { var num = msg.readInt32LE(i); expect(num).to.be((ii + 100) * 9823); } @@ -1075,7 +1075,7 @@ describe('server', function () { socket.on('open', function () { socket.on('message', function(msg) { - for (var i = 0, ii = 0; i < binaryData.length; i += 4, ii++) { + for (var i = 0, ii = 0; ii < binaryData.length; i += 4, ii++) { var num = msg.readInt32LE(i); expect(num).to.be((ii + 100) * 9823); }