node.js - compoundjs mocha tests failing on ubuntu server -


my tests run fine in os x environment, when run them on ubuntu (ec2) server, tests fail with:

✖ 1 of 40 tests failed: 1) accountcontroller "before each" hook:  error: done() invoked non-error: [object object]   @ compoundserver.<anonymous> (/usr/lib/node_modules/mocha/lib/runnable.js:198:38)   @ compoundserver.eventemitter.emit (events.js:95:17)   @ compoundserver.initcompound (/home/ubuntu/teamcity/buildagent/work/1d2dd0b199edbe3f/node_modules/compound/lib/compound.js:133:14)   @ compoundserver.initcompoundserver [as init] (/home/ubuntu/teamcity/buildagent/work/1d2dd0b199edbe3f/node_modules/compound/lib/server/compound.js:53:29)   @ /home/ubuntu/teamcity/buildagent/work/1d2dd0b199edbe3f/node_modules/compound/lib/compound.js:62:18   @ process._tickcallback (node.js:415:13) 

all i'm doing running mocha test/*. possibly caused difference in compoundjs or node.js? on mac working i'm on v0.8.22, on ubuntu server it's v0.10.5. likewise compound version on ubuntu 1.1.7-1, while on mac (working) 1.1.6.

looks issue app being generated previous version of compound. changing line on generated test

compound.on('ready', done); 

to

compound.on('ready', function() {       done();   }); 

fixed problem.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -