mirror of
https://github.com/soypat/lneto.git
synced 2026-09-10 00:29:34 +00:00
+8
-2
@@ -174,7 +174,10 @@ func TestPerformKE_E2E(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
secrets, err := PerformKE(tc, KEConfig{})
|
secrets, err := PerformKE(tc, KEConfig{})
|
||||||
tc.Close()
|
// Close the underlying pipe rather than tc.Close(): a TLS close_notify
|
||||||
|
// write over the synchronous net.Pipe would otherwise block on crypto/tls'
|
||||||
|
// 5s close deadline since the peer is no longer reading.
|
||||||
|
clientConn.Close()
|
||||||
<-done
|
<-done
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -653,7 +656,10 @@ func TestHandleKE_E2E(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
clientSecrets, err := PerformKE(tc, KEConfig{})
|
clientSecrets, err := PerformKE(tc, KEConfig{})
|
||||||
tc.Close()
|
// Close the underlying pipe rather than tc.Close(): a TLS close_notify
|
||||||
|
// write over the synchronous net.Pipe would otherwise block on crypto/tls'
|
||||||
|
// 5s close deadline since the peer is no longer reading.
|
||||||
|
clientConn.Close()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case err := <-errc:
|
case err := <-errc:
|
||||||
|
|||||||
Reference in New Issue
Block a user