lib/pact/mock_service/run.rb in pact-mock_service-2.9.2 vs lib/pact/mock_service/run.rb in pact-mock_service-2.9.3

- old
+ new

@@ -71,9 +71,14 @@ log.sync = true log end def webbrick_opts + # By default, the webrick logs go to $stderr, which then show up as an ERROR + # log in pact-go, so it was changed to $stdout. + # $stdout needs sync = true for pact-js to determine the port dynamically from + # the output (otherwise it does not flush in time for the port to be read) + $stdout.sync = true opts = { :Port => port, :Host => host, :AccessLog => [], :Logger => WEBrick::BasicLog.new($stdout)