Skip to content

Commit a6efb1f

Browse files
committed
wip: fix windows
1 parent 6b5f764 commit a6efb1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

challenge/tlsalpn01/tls_alpn_challenge_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func TestChallenge(t *testing.T) {
2424
_, apiURL := tester.SetupFakeAPI(t)
2525

2626
domain := "localhost"
27-
port := "23457"
27+
port := "24457"
2828

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

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

128128
domain := "127.0.0.1"
129-
port := "23457"
129+
port := "24457"
130130
rd, _ := dns.ReverseAddr(domain)
131131

132132
mockValidate := func(_ *api.Core, _ string, chlng acme.Challenge) error {
@@ -176,7 +176,7 @@ func TestChallengeIPaddress(t *testing.T) {
176176
solver := NewChallenge(
177177
core,
178178
mockValidate,
179-
&ProviderServer{port: "23457"},
179+
&ProviderServer{port: port},
180180
)
181181

182182
authz := acme.Authorization{

0 commit comments

Comments
 (0)