node.js - Mocha Test #getImpact "before all" hook: Error: timeout of 2000ms exceeded -


i want test module runs jar file , gives me result.

the problem jar file bound take 5 minutes execute , give result, because of error

callgraph_class_traversal #getimpact "before all" hook: error: timeout of 2000ms exceeded

my testing code is

describe("callgraph_class_traversal", function() {  describe("#getimpact", function() {  var gerritdata var revert; var result;  var resmock = function() {};  var updatedatabasemock = function(res, _gerritdata) {   gerritdata = _gerritdata;   res(); };  before(function(done) {   callgraph_class_traversal.__set__({     updatedatabase: updatedatabasemock,     up: upmock   });   callgraph_class_traversal.getimpact(methodschanged, done, gerritid); });  it('should correct api paths', function() {   assert.deepequal(gerritdata.apiresult.paths, expectedgerritdata.apiresult.paths); });  it('should correct api objects', function() {   assert.deepequal(gerritdata.apiresult.names, expectedgerritdata.apiresult.names); });  it('should correct cts paths', function() {   assert.deepequal(gerritdata.ctsresult.paths, expectedgerritdata.ctsresult.paths); });  it('should correct cts names', function() {   assert.deepequal(gerritdata.ctsresult.names, expectedgerritdata.ctsresult.names); });       after(function() { //      revert(); });  }); }); 

callgraph_class_traversal module want test.

i using rewire , assert test code.

please me this


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -