Skip to content

Commit

Permalink
moving done() inside timeout block
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanDonovan committed Dec 29, 2011
1 parent e5d250f commit 54826d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/easy_client.unit.js
Expand Up @@ -17,7 +17,7 @@ describe("EasyClient", function () {
});

describe("EasyClient.fetch", function () {
describe("directly", function () {
describe("connecting directly", function () {
it("sets up single client with supplied settings", function (done) {
EasyClient.fetch(settings, function (err, easy_client) {
check_err(err);
Expand Down Expand Up @@ -74,8 +74,8 @@ describe("EasyClient", function () {

setTimeout(function () {
assert.strictEqual(easy_client.client._socket.destroyed, true);
done();
}, 20);
done();
});
});
});
Expand Down

0 comments on commit 54826d4

Please sign in to comment.