-
Notifications
You must be signed in to change notification settings - Fork 148
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
fix: increase test timeout #846
Conversation
Codecov Report
@@ Coverage Diff @@
## master #846 +/- ##
=======================================
Coverage 88.83% 88.83%
=======================================
Files 27 27
Lines 16769 16769
Branches 1156 1156
=======================================
Hits 14896 14896
Misses 1868 1868
Partials 5 5 Continue to review full report at Codecov.
|
@@ -1073,7 +1073,7 @@ describe('getAll() method', () => { | |||
expect(actualErrorAttempts).to.deep.eq(expectedErrorAttempts); | |||
}); | |||
}); | |||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We normally do this.timeout(5000);
inside the function, it may be more readable than this, but up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't compile for me:
test/watch.ts(865,5): error TS7041: The containing arrow function captures the global value of 'this'.
test/watch.ts(865,10): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
If I want to do this, I have to use function() {..}
somewhere in my test initialization (e.g. in the describe
call). Rather than do this, I prefer to leave it as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we use function
instead of arrow-style functions if we need to set this.timeout()
. That's OK to leave it as is.
This should make our CI less flaky.