Skip to content

Commit

Permalink
Reduce travis wait time and update mocha asyc test done() call
Browse files Browse the repository at this point in the history
  • Loading branch information
toystars committed Sep 6, 2016
1 parent 8df1e37 commit b7ec63e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ services:
- mongodb

before_script:
- sleep 20
- sleep 10
16 changes: 10 additions & 6 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ describe('#getKeys()', function () {
age: 26,
job: 'Software Engineer',
dob: new Date
}, function (error, result) {
done();
});
done();
});
}
});
Expand Down Expand Up @@ -122,8 +123,9 @@ describe('#keyUsed()', function () {
Packages.insertOne({
name: 'mongo-schema-gen',
purpose: 'Simple mongoDB collections schema generator'
}, function (error, result) {
done();
});
done();
});
}
});
Expand Down Expand Up @@ -169,8 +171,9 @@ describe('#getSchema()', function () {
purpose: 'Simple mongoDB collections schema generator',
forks: 99000,
contributors: 8727373
}]);
done();
}], function (error, result) {
done();
});
});
}
});
Expand Down Expand Up @@ -219,8 +222,9 @@ describe('#stats()', function () {
purpose: 'Simple mongoDB collections schema generator',
forks: 99000,
contributors: 8727373
}]);
done();
}], function (error, result) {
done();
});
});
}
});
Expand Down

0 comments on commit b7ec63e

Please sign in to comment.