Fix flickering on TestConnectTimeoutStuckOnTLSHandshake
Ensure that even if the outer function finishes the goroutine can still send an error.
This commit is contained in:
@@ -235,8 +235,7 @@ func TestConnectTimeoutStuckOnTLSHandshake(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
defer ln.Close()
|
||||
|
||||
serverErrChan := make(chan error)
|
||||
defer close(serverErrChan)
|
||||
serverErrChan := make(chan error, 1)
|
||||
go func() {
|
||||
conn, err := ln.Accept()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user