Skip to content

Commit

Permalink
!squash don't use 'path' env var!
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Nov 9, 2017
1 parent 0905341 commit edffa1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions benchmark/_http-benchmarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ class TestDoubleBenchmarker {
const child = child_process.fork(this.executable, {
silent: true,
env: Object.assign({}, process.env, {
duration: options.duration,
connections: options.connections,
path: `http://127.0.0.1:${options.port}${options.path}`
test_url: `http://127.0.0.1:${options.port}${options.path}`
})
});
return child;
Expand Down
2 changes: 1 addition & 1 deletion benchmark/_test-double-benchmarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

const http = require('http');

http.get(process.env.path, function() {
http.get(process.env.test_url, function() {
console.log(JSON.stringify({ throughput: 1 }));
});

0 comments on commit edffa1d

Please sign in to comment.