title: In mocha testing while calling asynchronous function how to avoid the timeout Error: timeout of 2000ms exceeded
body: <p>In my node application I'm using mocha to test my code. While calling many asynchronous functions using mocha, I'm getting timeout error (<code>Error: timeout of 2000ms exceeded.</code>). How can I resolve this?</p>
  
  <pre><code>var module = require('../lib/myModule');
  var should = require('chai').should();
  
  describe('Testing Module', function() {
  
      it('Save Data', function(done) {
  
          this.timeout(15000);
  
          var data = {
              a: 'aa',
              b: 'bb'
          };
  
          module.save(data, function(err, res) {
              should.not.exist(err);
              done();
          });
  
      });
  
  
      it('Get Data By Id', function(done) {
  
          var id = "28ca9";
  
          module.get(id, function(err, res) {
  
              console.log(res);
              should.not.exist(err);
              done();
          });
  
      });
  
  });
  </code></pre>