-
Notifications
You must be signed in to change notification settings - Fork 1.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
test.cb does not timeout #1126
Comments
You need to use the |
Right. I apologize. I was under impression that there is a default global timeout. |
@sindresorhus I'd be happy to help look into a solution for #583. To speed along the process, do you know which file(s) I should be taking a look at? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I am using test.cb callback to define an asynchronous test. My test is failing (the expected callback is not called).
Current behaviour
This leaves the entire test suite hanging indefinitely.
Expected behaviour
Expect the test to fail after some X time.
Test Source
This produces:
Error Message & Stack Trace
None. The test is just hanging.
Config
Copy the relevant section from
package.json
:Command-Line Arguments
Copy your npm build scripts or the
ava
command used:Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:
$ node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())" $ ava --version $ npm --version Node.js v7.1.0 darwin 16.1.0 0.17.0 4.0.2
Side note
It would be a useful addition if the
DEBUG=*
logged which tests it is entering/ leaving to help debug issues such as this one. Now if the test is set toonly
I am not getting any output unless there is aconsole.log
in the script itself.The text was updated successfully, but these errors were encountered: