Skip to content

Commit a06a696

Browse files
committed
Relax test IP address assertion, to fix tests in Node 18
1 parent 85079f8 commit a06a696

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/integration/subscriptions/tls-error-events.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ describe("TLS error subscriptions", () => {
127127

128128
expect(tlsError.failureCause).to.be.equal('reset');
129129
expect(tlsError.hostname).to.equal('localhost');
130-
expect(tlsError.remoteIpAddress).to.equal('::ffff:127.0.0.1');
130+
expect(tlsError.remoteIpAddress).to.be.oneOf([
131+
'::ffff:127.0.0.1', // IPv4 localhost
132+
'::1' // IPv6 localhost
133+
]);
131134
expect(tlsError.remotePort).to.be.greaterThan(32768);
132135

133136
expect(tlsError.timingEvents.startTime).to.be.greaterThan(0);

0 commit comments

Comments
 (0)