mirror of
https://github.com/caddyserver/caddy.git
synced 2026-10-08 23:18:24 +00:00
close test http server after tests
This commit is contained in:
parent
f7b4830ffe
commit
6a18beecc7
1 changed files with 3 additions and 0 deletions
|
|
@ -924,6 +924,9 @@ func TestReverseProxyResponseHandling(t *testing.T) {
|
|||
})
|
||||
ts := httptest.NewUnstartedServer(mux)
|
||||
ts.Start()
|
||||
t.Cleanup(func() {
|
||||
ts.Close()
|
||||
})
|
||||
|
||||
tester := caddytest.NewTester(t)
|
||||
tester.InitServer(fmt.Sprintf(`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue