Skip to content

Commit

Permalink
Remove port hardcoding in pact verifier http handler (#30)
Browse files Browse the repository at this point in the history
# Description

Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.

Fixes # (issue)

# Checklist:

- [x] I have ensured that all new code is covered by tests
- [x] I have run `make format` to format the code according to
guidelines
- [x] I have documented any new functions introduced
- [x] I have updated the changelog in accordance with
https://keepachangelog.com/en/1.1.0/
- [x] I have updated the README, if required
  • Loading branch information
silverblaze404 authored Apr 19, 2024
1 parent f012cb2 commit 74a0c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pact_verifier.erl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ start_verifier(Provider, ProviderOpts) ->
Port1 = maps:get(port, ProviderOpts),
{Port1, undefined};
<<"message">> ->
{ok, Port1, HttpPid1} = pact_verifier:start(8181, Provider),
{ok, Port1, HttpPid1} = pact_verifier:start(0, Provider),
{Port1, HttpPid1}
end,
gen_server:start(
Expand Down

0 comments on commit 74a0c22

Please sign in to comment.