socketio / engine.io-client

The engine used in the Socket.IO JavaScript client, which manages the low-level transports such as HTTP long-polling, WebSocket and WebTransport.

Home Page:https://socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm test is failing for the latest version:6.4.0

vinodk99 opened this issue · comments

Facing test issues while executing npm test command on ppc64le.

Please fill the following code example:
npm test

Platform:

  • Device: Red Hat Enterprise Linux 8
  • OS:linux(PPC64LE)

Additional context
while executing npm test facing the below issue on ppc64le platform.

engine.io-client]# npm test

> engine.io-client@6.4.0 test /engine.io-client
> npm run format:check && npm run compile && if test "$BROWSERS" = "1" ; then npm run test:browser; else npm run test:node; fi


> engine.io-client@6.4.0 format:check /engine.io-client
> prettier --check 'lib/**/*.ts' 'test/**/*.js' 'support/**/*.js'

Checking formatting...
All matched files use Prettier code style!

> engine.io-client@6.4.0 compile /engine.io-client
> rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh


> engine.io-client@6.4.0 test:node /engine.io-client
> mocha --bail --reporter dot --require test/support/server.js test/index.js
  ․․․․․․․․!

  8 passing (5s)
  1 failing

  1) node.js autoRef option should not stop with autoUnref set to false:
     Error: should not happen
      at exec (test/node.js:25:14)
      at ChildProcess.exithandler (child_process.js:301:5)
      at maybeClose (internal/child_process.js:982:16)
      at Socket.stream.socket.on (internal/child_process.js:389:11)
      at Pipe._handle.close (net.js:607:12)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! engine.io-client@6.4.0 test:node: `mocha --bail --reporter dot --require test/support/server.js test/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the engine.io-client@6.4.0 test:node script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-05-08T12_27_58_839Z-debug.log
npm ERR! Test failed.  See above for more details.