-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[Linux] "Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.", but a 30000ms timeout WAS defined. #6557
Comments
We're seeing similar behavior intermittently on Travis CI builds |
This helped me: https://stackoverflow.com/a/49864436/5811158 // jest.config.js
module.exports = {
setupTestFrameworkScriptFile: './jest.setup.js'
}
// jest.setup.js
jest.setTimeout(30000) Specifically, this sets the timeout in the I don't understand why calling |
jest.setTimeout should be called before the test, because it must know the time limit prior to its execution. Want to update the docs to make it clear? :) |
Sure, PR incoming. |
this issue should already be closed, no? |
Yup, thanks! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
I'm trying to run a selenium test using Jest, and despite trying to increase the async callback time limit via multiple ways, it's not detecting them when I run my tests on a Linux machine running a Jenkins Job, it uses Node v8.8.3 LTS via NVM (Works fine on MacOS using Node v10).
I originally thought it was an issue on my end, but since I've pretty much tried everything suggested on both the Jest docs, other Jest issues, and Stackoverflow questions, I'm now of the belief this might be a Jest bug which just isn't properly documented.
To Reproduce
Steps to reproduce the behavior (can only reproduce on Linux machine using Node v8.8.3 afaik):
Expected behavior
Tests to run consistently between both machines.
Link to repl or repo (highly encouraged)
This is the Github repo I'm using, the tests are run using
npm run jest-test
https://github.com/sgarcia-dev/selenium-grid-test
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: