pact-foundation / pact-mock_service

Provides a mock service for use with Pact
https://pact.io
MIT License
73 stars 69 forks source link

fix: synchronize error when writing pact file, in Ruby 3.2.x #143

Closed YOU54F closed 1 year ago

YOU54F commented 1 year ago

Noted, in the pact-ruby-standalone upgrade to Ruby 3.2, fixes that :)

Writing pact for Provider to tmp/pacts/consumer-provider.json
ERROR ThreadError: can't be called from trap context\n\t/Users/saf/.rbenv/versions/3.2.2/lib/ruby/3.2.0/timeout.rb:132:in `synchronize'
INFO  going to shutdown ...
INFO  WEBrick::HTTPServer#start done.
YOU54F commented 1 year ago

Hey hey, so I am going to merge this and if it breaks the world, we will fix forward. We need to march on to Ruby 3.2, and it saves me from having to downgrade pact-ruby-standalone to use Ruby 3.1.2 (which works but is unnecessary, when master is sitting at 3.2)

Users can always pin, if they get stuck whilst we resolve issues, apologies in advance :)

It will certainly get a decent testing as I roll out the testing against the standalone consumers

bethesque commented 1 year ago

Thanks Yousaf.