We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9fabc5 commit f37c8f8Copy full SHA for f37c8f8
lib/pact/mock_service/run.rb
@@ -73,6 +73,11 @@ def open_log_file
73
end
74
75
def webbrick_opts
76
+ # By default, the webrick logs go to $stderr, which then show up as an ERROR
77
+ # log in pact-go, so it was changed to $stdout.
78
+ # $stdout needs sync = true for pact-js to determine the port dynamically from
79
+ # the output (otherwise it does not flush in time for the port to be read)
80
+ $stdout.sync = true
81
opts = {
82
:Port => port,
83
:Host => host,
0 commit comments