Skip to content

Commit 6a60bae

Browse files
committed
fix: pact-v2 verifier - pact_proxy_port was not honoured
1 parent eab26e6 commit 6a60bae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/README_V2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Place your provider verification file under
276276
@log_level = opts[:log_level] || :info
277277
@pact_dir = opts[:pact_dir] || nil
278278
@provider_setup_port = opts[:provider_setup_port] || 9001
279-
@pact_proxy_port = opts[:provider_setup_port] || 9002
279+
@pact_proxy_port = opts[:pact_proxy_port] || 9002
280280
@pact_uri = ENV.fetch("PACT_URL", nil) || opts.fetch(:pact_uri, nil)
281281
@publish_verification_results = ENV.fetch("PACT_PUBLISH_VERIFICATION_RESULTS", nil) == "true" || opts.fetch(:publish_verification_results, false)
282282
@provider_version = ENV.fetch("PACT_PROVIDER_VERSION", nil) || opts.fetch(:provider_version, nil)

lib/pact/v2/provider/pact_config/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(provider_name:, opts: {})
1717
@pact_dir = opts[:pact_dir] || nil
1818
@logger = opts[:logger] || nil
1919
@provider_setup_port = opts[:provider_setup_port] || 9001
20-
@pact_proxy_port = opts[:provider_setup_port] || 9002
20+
@pact_proxy_port = opts[:pact_proxy_port] || 9002
2121
@pact_uri = ENV.fetch("PACT_URL", nil) || opts.fetch(:pact_uri, nil)
2222
@publish_verification_results = ENV.fetch("PACT_PUBLISH_VERIFICATION_RESULTS", nil) == "true" || opts.fetch(:publish_verification_results, false)
2323
@provider_version = ENV.fetch("PACT_PROVIDER_VERSION", nil) || opts.fetch(:provider_version, nil)

0 commit comments

Comments
 (0)