azat-co / expressworks

Learn Express.js from the author of one of the best books on Express.js—Pro Express.js— with this workshop that will teach you basics of Express.js.
MIT License
715 stars 220 forks source link

node process should be killd after verified #7

Closed hanksudo closed 10 years ago

hanksudo commented 10 years ago

OS X 10.9 node v0.10.21

I am trying to pass challenge 1, by need run verify twice, and after verified, the node web server both 3000 and 3001 should be killd, or it can't run challenge 2.

first time

$ expressworks verify 01-hello_world.js
Verifying "HELLO WORLD!"...

ACTUAL                             EXPECTED
------                             --------

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: connect ECONNREFUSED
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)

second time

Verifying "HELLO WORLD!"...

ACTUAL                             EXPECTED
------                             --------
"Hello World!"                     "Hello World!"                 
# PASS

Your solution to HELLO WORLD! passed!

list node process

$ ps -awx | grep node
31914 ttys004    0:00.64 /usr/local/Cellar/node/0.10.21/bin/node 01-hello_world.js 3000
31915 ttys004    0:00.62 /usr/local/Cellar/node/0.10.21/bin/node /usr/local/share/npm/lib/node_modules/expressworks/problems/hello_world/solution.js 3001
hanksudo commented 10 years ago

maybe this helpful: https://github.com/rvagg/workshopper#cleanup

bigtunacan commented 10 years ago

I'm having the same issue; also on Mac OSX 10.9

fmay commented 10 years ago

Same problem here

azat-co commented 10 years ago

might be related to this thread https://github.com/nodeschool/discussions/issues/214#issuecomment-35823677