Skip to content

Commit

Permalink
Chore/upgrade to pact ffi 0.4.22 (#519)
Browse files Browse the repository at this point in the history
* fix: update pact-ffi to 0.4.22

* fix(deps): pin to node 22.4.1

    Node 22.5.0 failing to successfully complete install

    See nodejs/node#53902

* fix(win): close or destroy tcp socket for net.connect & net.createServer

- use socket.destroy for node 16 compat on windows
  • Loading branch information
YOU54F committed Jul 19, 2024
1 parent a3d97d2 commit 5db9deb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ffi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import logger, { DEFAULT_LOG_LEVEL } from '../logger';
import { LogLevel } from '../logger/types';
import { Ffi } from './types';

export const PACT_FFI_VERSION = '0.4.21';
export const PACT_FFI_VERSION = '0.4.22';

// supported prebuilds
// darwin-arm64
Expand Down
1 change: 1 addition & 0 deletions test/matt.consumer.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const sendMattMessageTCP = (
return new Promise((resolve) => {
socket.on('data', (data) => {
resolve(parseMattMessage(data.toString()));
socket.destroy();
});
});
};
Expand Down
1 change: 1 addition & 0 deletions test/matt.provider.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const startTCPServer = (host: string, port: number) => {
sock.write(generateMattMessage('message not understood'));
}
sock.write('\n');
sock.destroy();
});
});

Expand Down

0 comments on commit 5db9deb

Please sign in to comment.