-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Socket io 1.3 #1404
Upgrade to Socket io 1.3 #1404
Conversation
@dignifiedquire Awesome!! :) |
5af14dd
to
53bb0e2
Compare
@maksimr and everyone else, basics are working for me, now I need some more eyes on this to test it out please. |
@dignifiedquire check in our projects all work fine(:ok_hand:) with latest version of |
@maksimr great. Also I was tired of jasmine so I switched the client tests to run on mocha with browserify :) |
LGTM |
@nikku @bendrucker do you have any ideas why this is failing? All is running fine on my local machine (osx + FF) but it seems travis doesn't like the setup :( |
karma-browserify has a hack to add a preprocessor for the bundle file: https://github.com/nikku/karma-browserify/blob/5d75d41879a32cc5a8b62b7c821b1ddbd796e870/lib/preprocessor.js#L3 I'm betting the Karma under test !== the Karma that gets required on line 2. Try manually implementing the result from line 35 when you create your Karma config, adding: |
Thanks a lot @bendrucker that fixed it :) |
8851da1
to
0aaf930
Compare
Awesome. I'm guessing there's a reason npm doesn't handle that peer dep more cleverly. Couldn't find it though. |
823e888
to
47d04fa
Compare
@bendrucker looks like that wasn't actually the issue, travis started failing after one successful run again. The issue is that we are deleting |
@maksimr need a new review, needed more fixes for tests including karma-runner/integration-tests#4 to fix the integration tests. |
it's better not use 1.3.5, use 1.3 should be better, cause only the master |
Ping for review and pull |
This superseeds karma-runner#1257 and karma-runner#1258. Closes karma-runner#1220.
f977392
to
d793b25
Compare
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
Merged as 79072ae |
self._onProcessExit(code, errorOutput); | ||
}); | ||
|
||
self._process.on('error', function(err) { | ||
self._process.on('karma_error', function(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line does not look correct. The error event in this case is coming from the child process, indicating that spawn failed. It is different from the error event emitted by the socket, which was renamed from "error" to "karma_error".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are totally right, thanks a lot fixed in 45a6922
This is very much a work in progress, but from my tests neither the PR in #1257 nor #1258 does actually work. I hope to finish this in the next couple of days.
Update1: This only works when manually pulling in the forked & built version of
karma-jasmine@0.1.5
that's why travis will be complaining, until we updated the release there.Update2: Finally all tests passing locally :)
Update3: Update 1 is now obsolete as I switched the client tests to mocha.