Skip to content

Commit

Permalink
chore: change test ports (related to Windows and CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jan 6, 2024
1 parent 7186ebb commit 6da9220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions challenge/tlsalpn01/tls_alpn_challenge_test.go
Expand Up @@ -24,7 +24,7 @@ func TestChallenge(t *testing.T) {
_, apiURL := tester.SetupFakeAPI(t)

domain := "localhost"
port := "23457"
port := "24457"

mockValidate := func(_ *api.Core, _ string, chlng acme.Challenge) error {
conn, err := tls.Dial("tcp", net.JoinHostPort(domain, port), &tls.Config{
Expand Down Expand Up @@ -75,7 +75,7 @@ func TestChallenge(t *testing.T) {
solver := NewChallenge(
core,
mockValidate,
&ProviderServer{port: "23457"},
&ProviderServer{port: port},
)

authz := acme.Authorization{
Expand Down Expand Up @@ -126,7 +126,7 @@ func TestChallengeIPaddress(t *testing.T) {
_, apiURL := tester.SetupFakeAPI(t)

domain := "127.0.0.1"
port := "23457"
port := "24457"
rd, _ := dns.ReverseAddr(domain)

mockValidate := func(_ *api.Core, _ string, chlng acme.Challenge) error {
Expand Down Expand Up @@ -176,7 +176,7 @@ func TestChallengeIPaddress(t *testing.T) {
solver := NewChallenge(
core,
mockValidate,
&ProviderServer{port: "23457"},
&ProviderServer{port: port},
)

authz := acme.Authorization{
Expand Down

0 comments on commit 6da9220

Please sign in to comment.