Fix broken test in connection.ts for node 18 and add node 18 testing (#2183)

* Change localhost to 127.0.0.1

* Add Node 18 testing
This commit is contained in:
Jackson Mills
2023-01-09 09:26:14 -08:00
committed by GitHub
parent 8abcfe4640
commit 17f04b3083
2 changed files with 8 additions and 10 deletions

View File

@@ -136,7 +136,7 @@ describe('Connection', function () {
createServer().then((server: net.Server) => {
const port = (server.address() as net.AddressInfo).port
const options = {
proxy: `ws://localhost:${port}`,
proxy: `ws://127.0.0.1:${port}`,
authorization: 'authorization',
trustedCertificates: ['path/to/pem'],
}