Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: decrease mocha's timeout #1179

Merged
merged 1 commit into from
Jul 15, 2018
Merged

Conversation

XhmikosR
Copy link
Collaborator

@XhmikosR XhmikosR commented Jul 1, 2018

When we expect tests to take longer, set the timeout to 5 seconds explicitly. Otherwise use a 3 second timeout.

@jmervine: this might need to be tweaked a little more, but from my tests, it seems 5 seconds is enough.

Fixes #1173.

@XhmikosR XhmikosR requested a review from jmervine July 1, 2018 06:22
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 1, 2018 06:22 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 1, 2018 06:23 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 1, 2018 06:32 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 1, 2018 06:38 Inactive
@XhmikosR XhmikosR changed the title tests: decrease mocha's timeout. tests: decrease mocha's timeout and AppVeyor tweaks Jul 1, 2018
@XhmikosR XhmikosR changed the title tests: decrease mocha's timeout and AppVeyor tweaks tests: decrease mocha's timeout Jul 2, 2018
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 2, 2018 09:15 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 2, 2018 09:22 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 6, 2018 06:43 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 6, 2018 09:13 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 9, 2018 23:17 Inactive
@jmervine jmervine temporarily deployed to bootstrapcdn-dev-pr-1179 July 13, 2018 06:29 Inactive
test/404_test.js Outdated
@@ -18,7 +18,8 @@ describe('404', () => {
done();
});

it('valid html', (done) => {
it('valid html', function(done) {
this.timeout(5000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd pull the 5000 out in to a variable set in test_helpers.js, but I won't block on it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All right, I'll try to do it tomorrow.

When we expect tests to take longer, set the timeout to 5 seconds explicitly. Otherwise use a 3 second timeout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants