Skip to content

Commit 6c39229

Browse files
committed
remove test case already covered by previous test
1 parent 958537e commit 6c39229

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

caddy/caddy_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ func TestNamedModuleWorkers(t *testing.T) {
177177
var wg sync.WaitGroup
178178
testPortNum, _ := strconv.Atoi(testPort)
179179
testPortTwo := strconv.Itoa(testPortNum + 1)
180-
testPortThree := strconv.Itoa(testPortNum + 2)
181180
tester := caddytest.NewTester(t)
182181
tester.InitServer(`
183182
{
@@ -220,14 +219,6 @@ func TestNamedModuleWorkers(t *testing.T) {
220219
}
221220
}
222221
}
223-
224-
http://localhost:`+testPortThree+` {
225-
route {
226-
php {
227-
root ../testdata
228-
}
229-
}
230-
}
231222
`, "caddyfile")
232223

233224
for i := 0; i < 10; i++ {
@@ -236,7 +227,6 @@ func TestNamedModuleWorkers(t *testing.T) {
236227
go func(i int) {
237228
tester.AssertGetResponse("http://localhost:"+testPort+"/worker-with-env.php", http.StatusOK, "Worker has APP_ENV=one")
238229
tester.AssertGetResponse("http://localhost:"+testPortTwo+"/worker-with-env.php", http.StatusOK, "Worker has APP_ENV=two")
239-
tester.AssertGetResponse("http://localhost:"+testPortThree+"/worker-with-env.php", http.StatusOK, "Worker has APP_ENV=global")
240230
wg.Done()
241231
}(i)
242232
}

0 commit comments

Comments
 (0)