Skip to content

Commit

Permalink
fix(win): close or destroy tcp socket for net.connect & net.createServer
Browse files Browse the repository at this point in the history
- use socket.destroy for node 16 compat on windows
  • Loading branch information
YOU54F committed Jul 19, 2024
1 parent 214cb9a commit 6c80989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pact.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ describe('V4 Pact', () => {
return new Promise((resolve) => {
socket.on('data', (data) => {
resolve(parseMattMessage(data.toString()));
socket.end();
});
});
};
Expand Down

0 comments on commit 6c80989

Please sign in to comment.