Skip to content

Commit

Permalink
testutils: change ListenerWrapper to push the most recently accepted …
Browse files Browse the repository at this point in the history
…connection (#7772)
  • Loading branch information
easwars authored Oct 25, 2024
1 parent e0a730c commit a82315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/testutils/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a82315c

Please sign in to comment.