You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialport is run in CITGM to verify that changes in Node.js do not break the module. Seems like serialport throws an error with the latest Node.js versions in one of the tests where faulty data is passed through to the streams API:
1) listLinux
rejects on non-zero exit codes:
Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object
at readableAddChunk (_stream_readable.js:252:13)
at Readable.push (_stream_readable.js:220:10)
at Object.spawn (packages/bindings/lib/mocks/linux-list.js:2:568)
at /Users/iojs/tmp/citgm_tmp/dda96ec3-a570-4a8c-a7f3-a5aca58438c6/serialport/packages/bindings/lib/linux-list.js:2:1585
at new Promise (<anonymous>)
at listLinux (packages/bindings/lib/linux-list.js:2:1442)
at Context.<anonymous> (packages/bindings/lib/linux-list.test.js:118:18)
at processImmediate (internal/timers.js:456:21)
It is unclear to me what data should be written to the stream. Maybe just use JSON.stringify(mockPorts) to pass a string to stream.write()?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week no further activity occurs. Feel free continue the discussion or ask for a never-stale label to keep it open. If this is a support issue, consider sharing it on stack overflow to get more eyes on your problem.
Serialport is run in CITGM to verify that changes in Node.js do not break the module. Seems like serialport throws an error with the latest Node.js versions in one of the tests where faulty data is passed through to the streams API:
node-serialport/packages/bindings/lib/mocks/linux-list.js
Line 16 in c5ae5bd
The error is:
It is unclear to me what data should be written to the stream. Maybe just use
JSON.stringify(mockPorts)
to pass a string tostream.write()
?The text was updated successfully, but these errors were encountered: