From aabbffc956a6360cf740cdd7a049235be2392260 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Tue, 3 Jan 2017 08:42:55 +0100 Subject: [PATCH] [test] Increase test timeout --- test/WebSocket.test.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/WebSocket.test.js b/test/WebSocket.test.js index 7d938880a..be523dc03 100644 --- a/test/WebSocket.test.js +++ b/test/WebSocket.test.js @@ -254,10 +254,6 @@ describe('WebSocket', function () { }); }); - /* - * Ready state constants - */ - const readyStates = { CONNECTING: 0, OPEN: 1, @@ -265,10 +261,6 @@ describe('WebSocket', function () { CLOSED: 3 }; - /* - * Ready state constant tests - */ - Object.keys(readyStates).forEach((state) => { describe(`.${state}`, function () { it('is enumerable property of class', function () { @@ -1393,6 +1385,8 @@ describe('WebSocket', function () { }); it('can send and receive very long binary data', function (done) { + this.timeout(4000); + const buf = crypto.randomBytes(5 * 1024 * 1024); const server = https.createServer({ cert: fs.readFileSync('test/fixtures/certificate.pem'),