mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-13 09:05:49 +00:00
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:
16
.github/workflows/nodejs.yml
vendored
16
.github/workflows/nodejs.yml
vendored
@@ -5,7 +5,7 @@ name: Node.js CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, 1.x ]
|
branches: [main, 1.x]
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [12.x, 14.x, 16.x, 18.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -98,15 +98,14 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [12.x, 14.x, 16.x, 18.x]
|
||||||
|
|
||||||
services:
|
services:
|
||||||
rippled:
|
rippled:
|
||||||
image: natenichols/rippled-standalone:latest
|
image: natenichols/rippled-standalone:latest
|
||||||
ports:
|
ports:
|
||||||
- 6006:6006
|
- 6006:6006
|
||||||
options:
|
options: --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s
|
||||||
--health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -156,9 +155,8 @@ jobs:
|
|||||||
rippled:
|
rippled:
|
||||||
image: natenichols/rippled-standalone:latest
|
image: natenichols/rippled-standalone:latest
|
||||||
ports:
|
ports:
|
||||||
- 6006:6006
|
- 6006:6006
|
||||||
options:
|
options: --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s
|
||||||
--health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ describe('Connection', function () {
|
|||||||
createServer().then((server: net.Server) => {
|
createServer().then((server: net.Server) => {
|
||||||
const port = (server.address() as net.AddressInfo).port
|
const port = (server.address() as net.AddressInfo).port
|
||||||
const options = {
|
const options = {
|
||||||
proxy: `ws://localhost:${port}`,
|
proxy: `ws://127.0.0.1:${port}`,
|
||||||
authorization: 'authorization',
|
authorization: 'authorization',
|
||||||
trustedCertificates: ['path/to/pem'],
|
trustedCertificates: ['path/to/pem'],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user