Skip to content

Commit f4d5258

Browse files
Copilotmariuz
andcommitted
Fix Events tests - use correct host for EventConnection
Co-authored-by: mariuz <18359+mariuz@users.noreply.github.com>
1 parent c03c998 commit f4d5258

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/wire/database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Database.prototype.attachEvent = function (callback) {
175175
return;
176176
}
177177

178-
const eventConnection = new EventConnection(self.connection.host, socket_info.port, function (err) {
178+
const eventConnection = new EventConnection(socket_info.host, socket_info.port, function (err) {
179179
if (err) {
180180
doError(err, callback);
181181
return;

lib/wire/fbEventManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ FbEventManager.prototype._createEventLoop = function (callback) {
2929
return;
3030
}
3131
if (first)
32-
callback();
32+
callback(null);
3333
})
3434
}
3535

0 commit comments

Comments
 (0)