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

Why am i socket hang up or ETIMEDOUT? #208

Closed
lpf763827726 opened this issue Aug 28, 2021 · 3 comments
Closed

Why am i socket hang up or ETIMEDOUT? #208

lpf763827726 opened this issue Aug 28, 2021 · 3 comments

Comments

@lpf763827726
Copy link

i havn't change anything, and the test file are almost empty, but always socket hang up or ETIMEDOUT?

2021-08-27_17-40
2021-08-28_09-39
2021-08-28_09-39_1
2021-08-28_09-39_2
2021-08-28_10-17

please help me, thanks, i don't know how to let it work

@lpf763827726
Copy link
Author

when i run any test, it always starts for a long time

@drptbl
Copy link
Member

drptbl commented Sep 3, 2021

Sorry but you're not following the readme. That's the main reason of your errors.

@drptbl drptbl closed this as completed Sep 3, 2021
@lpf763827726
Copy link
Author

lpf763827726 commented Sep 6, 2021

i try to follow the readme, but when i run npm run syncress:run it will err:

Timed out waiting for the browser to connect. Retrying...

Timed out waiting for the browser to connect. Retrying again...

The browser never connected. Something is wrong. The tests cannot run. Aborting...

The browser never connected. Something is wrong. The tests cannot run. Aborting...
Warning: We failed processing this video.

This error will not alter the exit code.

TimeoutError: operation timed out
    at afterTimeout (/home/sp2/.cache/Cypress/8.3.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/timers.js:46:19)
    at Timeout.timeoutTimeout [as _onTimeout] (/home/sp2/.cache/Cypress/8.3.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/timers.js:76:13)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)


  (Results)

my synpress:run is synpress run --configFile tests/e2e/customConfig.json

customConfig.json:

{
    "retries": { "runMode": 0, "openMode": 0 },
    "integrationFolder": "tests/e2e/specs",
    "screenshotsFolder": "tests/e2e/screenshots",
    "videosFolder": "tests/e2e/videos",
    "chromeWebSecurity": true,
    "viewportWidth": 1366,
    "viewportHeight": 768,
    "component": {
        "componentFolder": ".",
        "testFiles": "**/*spec.{js,jsx,ts,tsx}"
    },
    "env": {
        "SECRET_WORDS": secret_words,
        "NETWORK_NAME": "goerli", // testnet
        "PASSWORD": password,
        "coverage": false
    },
    "defaultCommandTimeout": 30000,
    "pageLoadTimeout": 30000,
    "requestTimeout": 30000
}

i use run always timeout, but i use open, i have 30% can open the test(but it need so long time)

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

No branches or pull requests

2 participants