Test fails on Node 18 #67

Open
opened 2024-08-16 16:09:45 +00:00 by pieterocp · 0 comments
pieterocp commented 2024-08-16 16:09:45 +00:00 (Migrated from github.com)

~/careplanner/nodejs-websocket (master) $ npm test

nodejs-websocket@1.7.2 test
mocha -R spec -b

extraHeaders
✓ should create a headerString with extra header options

frames
✓ should connect to a websocket server
1) should deliver texts in order

2 passing (50ms)
1 failing

  1. frames
    should deliver texts in order:
    TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: 1
    at new NodeError (node:internal/errors:405:5)
    at _write (node:internal/streams/writable:296:13)
    at Writable.write (node:internal/streams/writable:337:10)
    at Connection.sendText (Connection.js:142:23)
    at Array.forEach ()
    at Context. (test/test.js:75:8)
    at process.processImmediate (node:internal/timers:476:21)
~/careplanner/nodejs-websocket (master) $ npm test > nodejs-websocket@1.7.2 test > mocha -R spec -b extraHeaders ✓ should create a headerString with extra header options frames ✓ should connect to a websocket server 1) should deliver texts in order 2 passing (50ms) 1 failing 1) frames should deliver texts in order: TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: 1 at new NodeError (node:internal/errors:405:5) at _write (node:internal/streams/writable:296:13) at Writable.write (node:internal/streams/writable:337:10) at Connection.sendText (Connection.js:142:23) at Array.forEach (<anonymous>) at Context.<anonymous> (test/test.js:75:8) at process.processImmediate (node:internal/timers:476:21)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sitegui/nodejs-websocket#67
No description provided.