Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 330bb63

Browse files
committed
Set env var http-parser to legacy for Node v12
1 parent 9fbfa8c commit 330bb63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integrationTests/node/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const nodeVersions = Object.keys(dependencies)
1212
for (const version of nodeVersions) {
1313
console.log(`Testing on ${version} ...`);
1414

15+
if (version === 'node-12') {
16+
process.env['http-parser'] = 'legacy';
17+
}
18+
1519
const nodePath = path.join(__dirname, 'node_modules', version, 'bin/node');
1620
childProcess.execSync(nodePath + ' index.js', { stdio: 'inherit' });
1721
}

0 commit comments

Comments
 (0)