Skip to content

Commit

Permalink
test: test on node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
ext committed Dec 11, 2024
1 parent 49db890 commit b098d69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x]
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -23,7 +23,6 @@ jobs:
- name: Selftest
run: npm run --if-present selftest
- name: Integration test
if: matrix.node-version == '20.x'
env:
WAIT_ON_TIMEOUT: 5000
run: npm run vite
Expand Down
2 changes: 1 addition & 1 deletion test-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const server = app.listen(0, function () {
const addr = server.address();
console.log("Example app listening at port", addr.port);
});
const hostname = `localhost:${server.address().port}`;
const hostname = `127.0.0.1:${server.address().port}`;

export { server, hostname };
2 changes: 1 addition & 1 deletion test/commontest/advancedMockformatBodyparameter.spec.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from "chai";
import pkg from "../../test-server.js";
import * as pkg from "../../test-server.js";

const { hostname } = pkg;

Expand Down

0 comments on commit b098d69

Please sign in to comment.