Separate the window sentence from the wrapped error so a bad certificate file is not reported as a key mismatch.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 15:01:38 +02:00
co-authored by Cursor
parent a405048f23
commit e642b24be0
17 changed files with 842 additions and 742 deletions
+1
View File
@@ -236,6 +236,7 @@ func (r *reflector) handshake(t *testing.T, cfg *tls.Config) error {
return err
}
err := r.tls.Handshake()
// Clearing the deadline is best-effort; the handshake error is the result.
_ = r.tls.SetDeadline(time.Time{})
if err != nil {
r.tls = nil