Skip to content

Commit

Permalink
test: fix autoselectfamily on platforms without IPv6 support (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros authored Jul 28, 2023
1 parent 512cdad commit 1037578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/autoselectfamily.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ test('with autoSelectFamily disabled the request fails when using request', (t)
method: 'GET',
dispatcher: agent
}, (err, { statusCode, body }) => {
t.strictSame(err.code, 'ECONNREFUSED')
t.ok(['ECONNREFUSED', 'EAFNOSUPPORT'].includes(err.code))
})
})
})
Expand All @@ -191,7 +191,7 @@ test('with autoSelectFamily disabled the request fails when using a client', (t)
path: '/',
method: 'GET'
}, (err, { statusCode, body }) => {
t.strictSame(err.code, 'ECONNREFUSED')
t.ok(['ECONNREFUSED', 'EAFNOSUPPORT'].includes(err.code))
})
})
})
Expand Down

0 comments on commit 1037578

Please sign in to comment.