testcafe: Testcafe and Webpack cause an ECONNRESET

Are you requesting a feature or reporting a bug?

Reporting a bug

What is the current behaviour?

After updating my Webpack and Testcafe version I am getting an error named ECONNRESET. Testcafe runs against a webpack-dev-server an executes the tests, at least some of them. After some time testcafe dies with this error message:

Error: read ECONNRESET
    at TCP.onread (net.js:660:25)
Emitted 'error' event at:
    at Socket.onerror (_stream_readable.js:687:12)
    at Socket.emit (events.js:182:13)
    at Socket.EventEmitter.emit (domain.js:442:20)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
### How would you reproduce the current behaviour (if this is a bug)?

I already found an issue (#2649) but it does not help me. Seems to me like there are sometimes issues with closing a connection when ending a fixture. I already tried using the Node version v10.5.0 but does not help so far.

What is the expected behavior?

The tests run through.

Specify your

  • operating system: macOS High Sierra v10.13.6
  • testcafe version: v0.21.0
  • node.js version: v10.8.0

About this issue

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

Commits related to this issue

Most upvoted comments

Hi @sambegin @DaAitch! The fix is released in testcafe@0.22.0, you can install it with npm i testcafe@latest and try it on your machine.

We have not established any exact dates yet. Any personal estimate may be misleading, so I cannot currently tell you the precise date.