Skip to content

Commit

Permalink
proxytest: fix log after test finished (#5878)
Browse files Browse the repository at this point in the history
(cherry picked from commit 02fb75e)
  • Loading branch information
AndersonQ committed Nov 4, 2024
1 parent ec75170 commit 1c5209a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testing/proxytest/proxytest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,10 @@ func TestProxy(t *testing.T) {
func TestHTTPSProxy(t *testing.T) {
targetHost := "not-a-server.co"
proxy, client, target := prepareMTLSProxyAndTargetServer(t, targetHost)
defer proxy.Close()
defer target.Close()
t.Cleanup(func() {
proxy.Close()
target.Close()
})

tcs := []struct {
name string
Expand Down

0 comments on commit 1c5209a

Please sign in to comment.