Skip to content

Commit

Permalink
Relax test IP address assertion, to fix tests in Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Apr 29, 2022
1 parent 85079f8 commit a06a696
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/subscriptions/tls-error-events.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ describe("TLS error subscriptions", () => {

expect(tlsError.failureCause).to.be.equal('reset');
expect(tlsError.hostname).to.equal('localhost');
expect(tlsError.remoteIpAddress).to.equal('::ffff:127.0.0.1');
expect(tlsError.remoteIpAddress).to.be.oneOf([
'::ffff:127.0.0.1', // IPv4 localhost
'::1' // IPv6 localhost
]);
expect(tlsError.remotePort).to.be.greaterThan(32768);

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

0 comments on commit a06a696

Please # to comment.