Skip to content

Commit

Permalink
test: always set _register back
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Sep 9, 2024
1 parent 882fb64 commit 5d01e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ test('ipc client close when heartbeat fails', async (t) => {
let pinged = false
const { _register } = IPC.prototype
IPC.prototype._register = function (...args) {
IPC.prototype._register = _register
if (this.server === null && this.id > -1) {
const { _ping } = this._internalHandlers
this._internalHandlers._ping = (params, client) => {
pinged = true
IPC.prototype._register = _register
return _ping(params, client)
}
}
Expand Down

0 comments on commit 5d01e3b

Please sign in to comment.