Skip to content

Commit

Permalink
(backport #5878) proxytest: fix log after test finished (#5878)
Browse files Browse the repository at this point in the history
(cherry picked from commit 02fb75e)

---------

Co-authored-by: Anderson Queiroz <[email protected]>
  • Loading branch information
AndersonQ committed Nov 22, 2024
1 parent bf052d3 commit 9a67fb7
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 9a67fb7

Please sign in to comment.