From e1ef99ab6254e65955880ea948aaa637f3182c64 Mon Sep 17 00:00:00 2001 From: Dimitri Nikitopoulos Date: Wed, 2 Oct 2024 15:51:12 -0400 Subject: [PATCH] fix: test stub update --- src/lib/impl/SubscriberImpl.js | 2 +- test/xmlrpcTest.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/impl/SubscriberImpl.js b/src/lib/impl/SubscriberImpl.js index fa3243a..ed97b69 100644 --- a/src/lib/impl/SubscriberImpl.js +++ b/src/lib/impl/SubscriberImpl.js @@ -320,7 +320,7 @@ class SubscriberImpl extends EventEmitter { }); // open the socket at the provided address, port - client.connect({port: port, host: address, autoSelectFamily: false}, () => { + client.connect({port, host: address, autoSelectFamily: false}, () => { if (this.isShutdown()) { client.end(); return; diff --git a/test/xmlrpcTest.js b/test/xmlrpcTest.js index 1747b82..7749625 100644 --- a/test/xmlrpcTest.js +++ b/test/xmlrpcTest.js @@ -547,7 +547,7 @@ describe('Protocol Test', () => { sub.on('registered', () => { - net.Socket.prototype.connect = function(port, address, callback) { + net.Socket.prototype.connect = function(options, callback) { process.nextTick(() => { callback(); });