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 2c6a94c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions testing/proxytest/proxytest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,11 @@ 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
target string
Expand Down

0 comments on commit 2c6a94c

Please sign in to comment.