Skip to content
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

Merged
merged 4 commits into from
Jan 9, 2024
Merged

Conversation

rafapaezbas
Copy link
Contributor

No description provided.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass 127… also

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@rafapaezbas rafapaezbas force-pushed the replace-dgram-with-udx branch from 907d70f to c6d9cf0 Compare December 27, 2023 09:32
@rafapaezbas rafapaezbas marked this pull request as ready for review December 27, 2023 10:27
@@ -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) => {
Copy link
Contributor

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

@mafintosh mafintosh merged commit cc4aeeb into main Jan 9, 2024
4 checks passed
@mafintosh mafintosh deleted the replace-dgram-with-udx branch January 9, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants