canjs / can-fixture-socket

Simulate socket.io services.
https://canjs.com/doc/can-fixture-socket.html
MIT License
7 stars 2 forks source link

broken with latest version of feathers #77

Closed Mattchewone closed 5 years ago

Mattchewone commented 5 years ago

After upgrading the packages to the latest of featherjs, the tests for feathers socketio are now failing.

I upgraded the devDependencies as follows:

"devDependencies": {
    "@feathersjs/feathers": "^3.3.1",
    "@feathersjs/socketio-client": "^1.2.1",
    "can-set-legacy": "<2.0.0",
    "detect-cyclic-packages": "^1.1.0",
    "done-serve": "^1.2.0",
    "donejs-cli": "^1.0.1",
    "es6-promise-polyfill": "^1.2.0",
    "generator-donejs": "^1.0.5",
    "jshint": "^2.9.1",
    "object-assign": "^4.1.0",
    "socket.io-client": "^2.2.0",
    "steal": "^1.5.6",
    "steal-qunit": "^1.0.1",
    "steal-tools": "^1.1.2",
    "testee": "^0.9.0"
  }

Then in the test.js file I removed the feathers-hooks package as this is no longer an external dependency:

...
var feathers = require('@feathersjs/feathers');
var feathersSocketio = require('@feathersjs/socketio-client');
...

var app = feathers()
  .configure(feathersSocketio(socket));
...

After making these changes and re-running the tests I see this error "Timeout of 5000ms exceeded calling find on messages".