pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
91 stars 46 forks source link

Cannot write multiple interactions to pact file when using plugins #223

Closed mefellows closed 1 year ago

mefellows commented 1 year ago

I've noticed in my testing of the gRPC/Protobuf plugin, that only the last interaction that is tested can be written to the pact file, even if the overwrite flag on pactffi_pact_handle_write_file is set to false.

I'm not sure if this relates to plugins, the specific plugin or something else.

Attached is a log at TRACE level for a JS test that has several messages (both sync and async), however the problem is present even if I stick with just synchronous pacts.

output.txt

rholshausen commented 1 year ago

Is this running on OSX? Does it also occur on Linux?

mefellows commented 1 year ago

Yes OSX, I'll get a repro for you.

mefellows commented 1 year ago

🤦

Screen Shot 2022-11-04 at 2 21 28 pm