Test case can't be launched, error message as: Can't set headers after they are sent #32

skyscribe opened this Issue Oct 28, 2012 · 3 comments


None yet

4 participants


I followed the instructions to clone the latest master branch into my local directory, installed all dependencies and finished the build procedure, however I was not able to run the test cases. Below error is emitted after executing rake test:

throw new Error('Can\'t set headers after they are sent.');
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:650:11)
    at /usr/local/lib/node_modules/testacular/lib/web-server.js:61:14
    at fs.js:185:14
    at /usr/local/lib/node_modules/testacular/node_modules/glob/node_modules/graceful-fs/graceful-fs.js:90:5
    at Object.oncomplete (fs.js:308:15)
    at process._makeCallback (node.js:248:20)
rake aborted!
Command failed with status (1): [testacular start testacular-jqlite.conf.js...]

I have same problem. What version of nodejs do you have? I think it might be related because i've upgraded to v0.9.3
and now I've this error. Downgrading to v0.8.15 helped. Now it's working fine.


I encountered this problem, and solved it by switching from testacular to karma (testacular was renamed to karma).

Angular member

Karma is the right tool but now the best thing to do is run grunt test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment