From e65bb0d9722da4b7bab790ea5dcbcccfa82cc916 Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Wed, 2 Oct 2024 22:44:16 +0200 Subject: [PATCH] test(common.socket): Increase margin for memleak test to avoid flaky tests (#15961) --- plugins/common/socket/socket_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/socket/socket_test.go b/plugins/common/socket/socket_test.go index 5ced8c0f9..5a2a6d7d2 100644 --- a/plugins/common/socket/socket_test.go +++ b/plugins/common/socket/socket_test.go @@ -823,7 +823,7 @@ func TestTLSMemLeak(t *testing.T) { final, err := testCycle(2000) require.NoError(t, err) - require.Less(t, final, 2*initial) + require.Less(t, final, 3*initial) } func createClient(endpoint string, addr net.Addr, tlsCfg *tls.Config) (net.Conn, error) {