From a82315c00fa4311dcd0df84522d97e68014f1314 Mon Sep 17 00:00:00 2001 From: Easwar Swaminathan Date: Fri, 25 Oct 2024 11:33:47 -0700 Subject: [PATCH] testutils: change ListenerWrapper to push the most recently accepted connection (#7772) --- internal/testutils/wrappers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testutils/wrappers.go b/internal/testutils/wrappers.go index c9b596d8851c..1770b5237c4d 100644 --- a/internal/testutils/wrappers.go +++ b/internal/testutils/wrappers.go @@ -53,7 +53,7 @@ func (l *ListenerWrapper) Accept() (net.Conn, error) { } closeCh := NewChannel() conn := &ConnWrapper{Conn: c, CloseCh: closeCh} - l.NewConnCh.Send(conn) + l.NewConnCh.Replace(conn) return conn, nil }