Skip to content

engine.io-client 1.6.9 makes node.js socketio calls hang #396

Closed
@ksylvan

Description

@ksylvan

This is related to socketio/socket.io-client#969

Again, not sure why the npm package is 1.6.9 while the source code here is only at version 1.6.8

I traced the problem down to the engine.io-client 1.6.9 update in the socket.io-client update.

After npm install --save socket.io-client I changed the package.json reference to be for 1.6.8:

/usr/src/app $ grep engine.io-client node_modules/socket.io-client/package.json 
"engine.io-client": "1.6.8",

And now my tests work:

$ ./test/run_tests InfoController

  InfoController
    /version:
  ✓ should return json (57ms)
  ✓ should have valid json info
  InfoController with sockets
    /version:
  ✓ should return data
  3 passing (16s)

Changing it back to 1.6.9, here is what happens:

$ ./test/run_tests InfoController

 InfoController
    /version:
  ✓ should return json (41ms)
  ✓ should have valid json info 
  InfoController with sockets
    /version:
  1) should return data
  2 passing (12s)
  1 failing    
  1) InfoController with sockets /version: should return data:
     Error: timeout of 5000ms exceeded. Ensure the done() callback is being called in this test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions