Skip to content

Commit

Permalink
fix(message): Fixed an issue where message pacts could not be created…
Browse files Browse the repository at this point in the history
… on some platforms
  • Loading branch information
TimothyJones committed Jan 4, 2021
1 parent b34bdd1 commit a092ed9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ export class Message {
public createMessage(): q.Promise<unknown> {
logger.info(`Creating message pact`);
const deferred = q.defer();
const { pactFileWriteMode, ...restOptions } = this.options;

const instance = spawn.spawnBinary(
pactStandalone.messagePath,
this.options,
[{ pactFileWriteMode }, restOptions],
this.__argMapping,
);
const output: Array<string | Buffer> = [];
Expand Down

0 comments on commit a092ed9

Please sign in to comment.