title: timeout of 2000ms exceeded mocha
body: <p>I have two test cases i.e. it("should pass with..").. and it("should fail with..").., When I test this it gave timeout of 2000ms exceeded error.</p>
  
  <pre><code>describe("flickrphotoSearch", function () {
  it("should pass with correct inputs", function (done) {
      flickrApplication.flickrPhotoSearch("hello", "flickr_user_Key", 1, handleData);
      function handleData(photoUrl, done) {
          this.setTimeout(1500);
          assert.isString(photoUrl.toString(), 'not a string');
          setTimeout(done, 1000);
      };
  });
  it("should fail with wrong key", function (callingDone) {
      flickrApplication.flickrPhotoSearch("hello", "wrong key", 1, handleData);
      function handleData(photoUrl, done) {
          this.setTimeout(1500);
          assert.equal(photoUrl.stat, "ok", photoUrl.message);
          setTimeout(done, 1000);
      };
  });
  });
  </code></pre>
  
  <p>for the first test I am getting timeout exceeded error, but second one is running good.
  Please tell me where I am wrong.</p>