Skip to content

Commit

Permalink
fix: test stub update
Browse files Browse the repository at this point in the history
  • Loading branch information
dnikitop committed Oct 2, 2024
1 parent 95182d4 commit e1ef99a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/impl/SubscriberImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/xmlrpcTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit e1ef99a

Please sign in to comment.