-
Notifications
You must be signed in to change notification settings - Fork 91
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
Failing test #2
Comments
@adam-lynch could you run the app directly |
Oh, and after running
|
@edjafarov I didn't see your reply... I'll test it after lunch :) |
@edjafarov I got "Error: Cannot find module 'request'" so I 1 failing
1) build app: copy current to temp change manifest, build from temp package for [current os] change manifest, build from temp "before all" hook:
Uncaught AssertionError: expected 3 to equal 0
+ expected - actual
+0
-3
at ChildProcess.<anonymous> (C:\Users\Digital\Code\GitHub\updater\test\basicTest.spec.js:81:29)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5) Weirdly though, if I run I checked my task manager and found two versions of > node-webkit-updater@0.0.2 test C:\Users\Digital\Code\GitHub\updater
> node node_modules/grunt-cli/bin/grunt clean mochaTest
Running "clean:main" (clean) task
Cleaning test/app...OK
Running "mochaTest:test" (mochaTest) task
C:\Users\Digital\Code\GitHub\updater\test
build app: copy current to temp
change manifest, build from temp
Running "nodewebkit:src" (nodewebkit) task
C:\Users\Digital\Code\GitHub\updater\test\deploy0.2\releases\updapp\win\updapp\updapp.exe C:\Users\Digital\Code\GitHub\updater\test\deploy0.2\releases\updapp\updapp.nw win C:\Users\Digital\Code\GitHub\updater\test\deploy0.2\cache\win\0.9.2\nw.exe
>> Created a new release with node-webkit (0.9.2) for win
>> @ C:\Users\Digital\Code\GitHub\updater\test\deploy0.2\releases\updapp
Running "copy:win" (copy) task
Copied 1 files
Done, without errors.
package for [current os]
compress:win
Running "compress:win" (compress) task
Created ./test/deploy0.2/releases/updapp/win/updapp.zip (27557146 bytes)
Done, without errors.
change manifest, build from temp
Running "nodewebkit:src" (nodewebkit) task
C:\Users\Digital\Code\GitHub\updater\test\deploy0.1\releases\updapp\win\updapp\updapp.exe C:\Users\Digital\Code\GitHub\updater\test\deploy0.1\releases\updapp\updapp.nw win C:\Users\Digital\Code\GitHub\updater\test\deploy0.1\cache\win\0.9.2\nw.exe
>> Created a new release with node-webkit (0.9.2) for win
>> @ C:\Users\Digital\Code\GitHub\updater\test\deploy0.1\releases\updapp
Running "copy:win" (copy) task
Copied 1 files
Done, without errors.
run built app for [os], wait for app to be updated
1) "before all" hook
0 passing (5s)
1 failing
1) build app: copy current to temp change manifest, build from temp package for [current os] change manifest, build from temp run built app for [os], wait for app to be updated "before all" hook:
Uncaught Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at Server.listen (net.js:1127:5)
at Function.app.listen (C:\Users\Digital\Code\GitHub\updater\node_modules\express\lib\application.js:548:24)
at Context.<anonymous> (C:\Users\Digital\Code\GitHub\updater\test\basicTest.spec.js:94:17)
at Hook.Runnable.run (C:\Users\Digital\Code\GitHub\updater\node_modules\grunt-mocha-test\node_modules\mocha\lib\runnable.js:196:15)
at next (C:\Users\Digital\Code\GitHub\updater\node_modules\grunt-mocha-test\node_modules\mocha\lib\runner.js:259:10)
at Object._onImmediate (C:\Users\Digital\Code\GitHub\updater\node_modules\grunt-mocha-test\node_modules\mocha\lib\runner.js:276:5)
at processImmediate [as _immediateCallback] (timers.js:330:15) |
|
Ok there was something on 3000 (not even sure what it was but anyway). After changing the port and running the test, an app opened with an error (I forgot to actually save what it said). I then re-ran the tests but it complained that it can't clean an empty directory. I just manually removed |
you can run tests with in the app's toolbar you can open chrome dev tools, and check console. It should say why is it failing. |
@edjafarov I am. The grunt clean task mustn't like non-empty directories on Windows. Is there a |
https://github.com/edjafarov/updater/blob/master/test/basicTest.spec.js#L25 if you changed the port, you need to change it in config also:) |
@edjafarov I did. The only place |
Huh. It worked. So, changing it to |
try http://localhost:3000/releases/updapp/win/updapp.zip inside your browser (check if the server is serving the file) |
http://localhost:3000/releases/updapp/win/updapp.zip returned "Cannot GET /releases/updapp/win/updapp.zip". 3001 and 3002 returned a 404. |
strange why it returns ECONREFUSED then. It does that https://github.com/edjafarov/updater/blob/master/app/updater.js#L34 after getting a response. |
strange, I just fetched clean app to my win8.1 virtual machine, does npm install in root and app folders. npm test worked fine. node 0.10.18 npm 1.4.16 |
I just reproduced it on another Windows 8 machine. Fresh clone (of my fork, but same really), etc. I think we should get the test to fail if there's any console error and then obviously fix the problem. |
|
Strange O_O. Is there a way you could reproduce this in Virtualbox win8? |
Sorry for not getting back to you. I've just re-cloned the project and I got the same error. All I'm doing is npm installing (at root and in |
yeah, I got the same error. Though it looks like error in tests rather than update itself. I will look into the problem. |
Agreed. Thanks. |
Bumped to 0.0.11. It's probably just luck, but #2 isn't happening now for me.
@adam-lynch this should be closed right? |
@edjafarov As far as I know, the test still fails. I.e. the updating works but the test has a failure. |
The test fails for me.
0.10.20
1.3.11
0.9.2-1
(global install)Dump:
The text was updated successfully, but these errors were encountered: