Skip to content

Commit

Permalink
[test] Increase test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Jan 3, 2017
1 parent 44f9e89 commit aabbffc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/WebSocket.test.js
Expand Up @@ -254,21 +254,13 @@ describe('WebSocket', function () {
});
});

/*
* Ready state constants
*/

const readyStates = {
CONNECTING: 0,
OPEN: 1,
CLOSING: 2,
CLOSED: 3
};

/*
* Ready state constant tests
*/

Object.keys(readyStates).forEach((state) => {
describe(`.${state}`, function () {
it('is enumerable property of class', function () {
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit aabbffc

Please sign in to comment.