cypress: Web requests should not be automatically retried after 120 seconds when they are still pending.

Current behavior

Web requests are automatically retried after 120 seconds even if they are still pending.

Desired behavior

Don’t retry web requests that are still pending.

Test code to reproduce

Refer to https://github.com/cypress-io/cypress/issues/2055

Issue 2055 is still active and adding the line this._server.setTimeout(0); (see bellow) to server.js resolves the issue :

  createServer (app, config, project, request, onWarning) {
    return new Promise((resolve, reject) => {
      const { port, fileServerFolder, socketIoRoute, baseUrl } = config

      this._server = http.createServer(app)
      this._server.setTimeout(0); // added line
      allowDestroy(this._server)

      const onError = (err) => {
        // if the server bombs before starting
        // and the err no is EADDRINUSE
        // then we know to display the custom err message
        if (err.code === 'EADDRINUSE') {
          return reject(this.portInUseErr(port))
        }
      }

Please, add that line.

Versions

5.6.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (6 by maintainers)

Most upvoted comments

Hi @nagash77, the issue no more exists with the latest version (12.12.0).