close test http server after tests
parent
f7b4830ffe
commit
6a18beecc7
|
|
@ -924,6 +924,9 @@ func TestReverseProxyResponseHandling(t *testing.T) {
|
||||||
})
|
})
|
||||||
ts := httptest.NewUnstartedServer(mux)
|
ts := httptest.NewUnstartedServer(mux)
|
||||||
ts.Start()
|
ts.Start()
|
||||||
|
t.Cleanup(func() {
|
||||||
|
ts.Close()
|
||||||
|
})
|
||||||
|
|
||||||
tester := caddytest.NewTester(t)
|
tester := caddytest.NewTester(t)
|
||||||
tester.InitServer(fmt.Sprintf(`
|
tester.InitServer(fmt.Sprintf(`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue