Skip to content

Commit 813da75

Browse files
committed
what?
1 parent ced877d commit 813da75

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

caddy/caddy_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
)
2121

2222
var testPort = "9080"
23-
var testPortTwo = "9081"
2423

2524
func TestPHP(t *testing.T) {
2625
var wg sync.WaitGroup
@@ -92,7 +91,6 @@ func TestWorker(t *testing.T) {
9291
{
9392
skip_install_trust
9493
admin localhost:2999
95-
https_port 9443
9694
9795
frankenphp {
9896
worker ../testdata/index.php 2
@@ -151,7 +149,7 @@ func TestGlobalAndLocalWorker(t *testing.T) {
151149
}
152150
}
153151
154-
http://localhost:`+testPortTwo+` {
152+
http://localhost:9801 {
155153
route {
156154
php {
157155
root ../testdata
@@ -164,8 +162,8 @@ func TestGlobalAndLocalWorker(t *testing.T) {
164162
wg.Add(1)
165163

166164
go func(i int) {
167-
tester.AssertGetResponse("http://localhost:"+testPort+"/worker-with-env.php", http.StatusOK, fmt.Sprintf(fmt.Sprintf("Worker has APP_ENV=%s", "local")))
168-
tester.AssertGetResponse("http://localhost:"+testPortTwo+"/worker-with-env.php", http.StatusOK, fmt.Sprintf(fmt.Sprintf("Worker has APP_ENV=%s", "global")))
165+
tester.AssertGetResponse("http://localhost:"+testPort+"/worker-with-env.php", http.StatusOK, "Worker has APP_ENV=local")
166+
tester.AssertGetResponse("http://localhost:9801/worker-with-env.php", http.StatusOK, "Worker has APP_ENV=global")
169167
wg.Done()
170168
}(i)
171169
}

0 commit comments

Comments
 (0)