You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: fix quic regression test — pass ca cert and track server closed
Two fixes:
1. Pass ca: certs to connect() so TLS validation succeeds against the
self-signed agent1-cert.pem. Without it the client rejects the server cert
with UNABLE_TO_GET_ISSUER_CERT_LOCALLY, the session never fully opens, and
'await clientSession.closed' never settles.
2. Track serverSession.closed via a separate Promise.withResolvers() so the
test waits for both sides to cleanly tear down before exiting.
Also clarifies in the comment that the exact C++ crash path (packet-allocation
failure inside SendDatagram) cannot be triggered from JS; the test exercises
the closest reachable scenario and validates the null-impl_ guard introduced
in session.cc.
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments