mozilla/browserid — Issue #1019: Backend Unit Tests failing on local installs
Author: jbonacci
Created: 2012-02-01 02:52:36+00:00
State: open

I just did a local install (fixed) to a clientX machine, and a good local install to my Mac.

In both cases, running "npm test" gets me this:
The "sys" module is now called "util". It should have a similar interface.
CANNOT TEST 'test_mysql' ENVIRONMENT: can't connect to the database
The "sys" module is now called "util". It should have a similar interface.
Testing with NODE_ENV=test_json
tests/add-email-with-assertion-test.js
The "sys" module is now called "util". It should have a similar interface.
······error getting csrf token: http error
✗error getting csrf token: http error
✗

At this point the process appears to hang.

Processes:
node /Users/jbonacci/Git/browserid/bin/keysigner
node /Users/jbonacci/Git/browserid/bin/verifier
node /Users/jbonacci/Git/browserid/scripts/run_locally.js
node /Users/jbonacci/Git/browserid/node_modules/.bin/vows tests/add-email-with-assertion-test.js
node /usr/local/bin/npm test
node /Users/jbonacci/Git/browserid/bin/browserid
node /Users/jbonacci/Git/browserid/bin/proxy
node /Users/jbonacci/Git/browserid/scripts/serve_example_primary.js
node /Users/jbonacci/Git/browserid/scripts/serve_example.js
node /Users/jbonacci/Git/browserid/bin/dbwriter

Killing the tests leaves some debris lying around:
jbonacci 3271 3.4 1.2 881176 205036 pts/4 Rl 18:37 0:23 node /home/jbonacci/browserid/scripts/run_locally.js
jbonacci 3273 0.2 0.0 0 0 pts/4 Z 18:37 0:01 [node]
jbonacci 3277 0.2 0.0 0 0 pts/4 Z 18:37 0:01 [node]
jbonacci 3280 0.2 0.0 0 0 pts/4 Z 18:37 0:01 [node]
jbonacci 3287 0.0 0.0 0 0 pts/4 Z 18:37 0:00 [node]
jbonacci 3292 0.3 0.0 0 0 pts/4 Z 18:37 0:02 [node]

That was on the clientX machine.
On my local install, no such defunct processes left in the PS list