Skip to content

Commit f62b7e4

Browse files
committed
test: fix running fastify.test.js with node v8 (#3317)
`http.request(url, options, cb)` didn't exist until node v10.
1 parent d8bbf3a commit f62b7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/instrumentation/modules/fastify/fastify.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ test('captureBody', function (t) {
101101
// an argument to the callback
102102
const port = fastify.server.address().port
103103
const cReq = http.request(
104-
'http://localhost:' + port + '/postSomeData',
105104
{
106105
method: 'POST',
107106
hostname: 'localhost',
108107
port,
108+
path: '/postSomeData',
109109
headers: {
110110
'Content-Type': 'application/json',
111111
'Content-Length': Buffer.byteLength(postData)

0 commit comments

Comments
 (0)