-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replaced dgram with udx socket in tests #17
Conversation
test/helpers/proxy.js
Outdated
@@ -31,15 +32,11 @@ module.exports = function proxy ({ from, to, bind } = {}, drop) { | |||
|
|||
function fwd (dropping) { | |||
if (dropping === true) return | |||
socket.send(buf, 0, buf.byteLength, port, '127.0.0.1') | |||
socket.send(buf, port) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass 127… also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
907d70f
to
c6d9cf0
Compare
@@ -511,7 +511,7 @@ test('throw in message callback', async function (t) { | |||
|
|||
b.send(b4a.from('hello'), a.address().port) | |||
|
|||
process.once('uncaughtException', async (err) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to sniff if you have process and fallback to Bare here,
const handler = typeof process !== 'undefined' ? process : Bare
No description provided.