Skip to content

Commit

Permalink
Remove timeouts on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisDS committed Nov 4, 2013
1 parent d34d710 commit 5e8f3d9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions core/test/unit/api_posts_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ describe('Post API', function () {
});

beforeEach(function (done) {
this.timeout(5000);
testUtils.initData()
.then(function () {
testUtils.insertDefaultFixtures();
Expand Down Expand Up @@ -164,7 +163,7 @@ describe('Post API', function () {
});
});


it('can\'t retrieve non existent post', function (done) {
request.get(testUtils.API.getApiURL('posts/99/'), function (error, response, body) {
response.should.have.status(404);
Expand All @@ -191,7 +190,7 @@ describe('Post API', function () {
response.should.be.json;
putBody.should.exist;
putBody.title.should.eql(changedValue);

testUtils.API.checkResponse (putBody, expectedPostProperties);
done();
});
Expand Down
1 change: 0 additions & 1 deletion core/test/unit/api_settings_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('Settings API', function () {
});

beforeEach(function (done) {
this.timeout(5000);
testUtils.initData()
.then(function () {
testUtils.insertDefaultFixtures();
Expand Down
1 change: 0 additions & 1 deletion core/test/unit/api_tags_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('Tag API', function () {
});

beforeEach(function (done) {
this.timeout(5000);
testUtils.initData()
.then(function () {
testUtils.insertDefaultFixtures();
Expand Down
3 changes: 1 addition & 2 deletions core/test/unit/api_users_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('User API', function () {
});

beforeEach(function (done) {
this.timeout(5000);
testUtils.initData()
.then(function () {
testUtils.insertDefaultFixtures();
Expand Down Expand Up @@ -97,7 +96,7 @@ describe('User API', function () {
response.should.be.json;
putBody.should.exist;
putBody.website.should.eql(changedValue);

testUtils.API.checkResponse (putBody, expectedProperties);
done();
});
Expand Down

0 comments on commit 5e8f3d9

Please sign in to comment.