qunitjs / node-qunit

QUnit runner for Node.js.
MIT License
172 stars 53 forks source link

Error: Process blocked for too long #119

Closed dhowe closed 9 years ago

dhowe commented 9 years ago

I get the following errors when I run a group of test via node-qunit:

[20:50:10] Error: Command failed: /bin/sh -c ./node_modules/.bin/qunit -l "{ globalSummary: true, errors: true }" -c src/mylib.js -d src/mylib_lts.js src/mylib_dict.js -t "test/mylib-qunit-helpers.js" ./test/mylib-tests1.js ./test/mylib-tests2.js ./test/mylib-tests3.js
[Error: Process blocked for too long]

    at ChildProcess.exithandler (child_process.js:744:12)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1008:16)
    at Socket.<anonymous> (child_process.js:1176:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:476:12)

I see it referenced here, but I'm not sure of the status... Any info or a workaround would be great, as my tests now fail when I try to run them in node (though they are ok in phantomjs)

kof commented 9 years ago

See maxBlockDuration option if its normal for your task to block the process for seconds - increase it.