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

CYPRESS_VERIFY_TIMEOUT TypeError: Expected the timeout option to be a non-negative integer, got 100000 (string) #19476

Closed
Tracked by #4307
assimilatedgiraffe opened this issue Dec 24, 2021 · 2 comments · Fixed by #19517
Assignees

Comments

@assimilatedgiraffe
Copy link

Current behavior

New CYPRESS_VERIFY_TIMEOUT environment variable errors out.

Windows:

>set CYPRESS_VERIFY_TIMEOUT=100000

>npx cypress verify


An unexpected error occurred while verifying the Cypress executable.

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

TypeError: Expected the `timeout` option to be a non-negative integer, got `100000` (string)

...

Linux:

$ export CYPRESS_VERIFY_TIMEOUT=100000
$ npx cypress verify
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
----------
Command failed with ERR_OUT_OF_RANGE: <dir>/.cache/Cypress/9.2.0/Cypress/Cypress --no-sandbox --smoke-test --ping=470
The value of "timeout" is out of range. It must be an unsigned integer. Received '100000'
----------
Platform: linux-x64 (Ubuntu - )
Cypress Version: 9.2.0

Desired behavior

New CYPRESS_VERIFY_TIMEOUT environment variable works so I don't have to tinker with my CI every time I update cypress ;)

Test code to reproduce

Windows:

set CYPRESS_VERIFY_TIMEOUT=100000
npx cypress verify

Linux:

export CYPRESS_VERIFY_TIMEOUT=100000
npx cypress verify

Cypress Version

9.2.0

Other

Delighted to see this variable introduced!

So many of the small issues our team has had with Cypress have been resolved in the past year :)

@tbiethman tbiethman self-assigned this Jan 3, 2022
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review stage: work in progress and removed stage: needs review The PR code is done & tested, needs review stage: work in progress labels Jan 3, 2022
@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Jan 4, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 4, 2022

The code for this is done in cypress-io/cypress#19517, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 10, 2022

Released in 9.2.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v9.2.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants