Skip to content

Commit

Permalink
Update tests for node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaq committed Mar 24, 2024
1 parent 910497d commit b701f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install NodeJS
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 18.x
- name: Install Dependencies
run: npm install
- name: Execute Tests
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ const thenBuffer = fl.bichain (res => fl.swap (fn.bufferResponse ('utf8') (res))

test ('sendRequest', () => Promise.all ([
assertRejects (fn.sendRequest (fn.Request ({}) ('https://localhost') (fn.emptyStream)))
(Object.assign (new Error ('connect ECONNREFUSED 127.0.0.1:443'), {
address: '127.0.0.1',
(Object.assign (new Error ('connect ECONNREFUSED ::1:443'), {
address: '::1',
code: 'ECONNREFUSED',
errno: -111,
port: 443,
Expand Down

0 comments on commit b701f24

Please sign in to comment.