We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87999d0 commit 31a8c68Copy full SHA for 31a8c68
test/core/run
@@ -35,6 +35,7 @@
35
//
36
37
var path = require('path'),
38
+ spawn = require('child_process').spawn,
39
httpProxy = require('../../'),
40
common = require('./common');
41
@@ -50,7 +51,11 @@ var proxy = httpProxy.createServer(common.PORT, 'localhost');
50
51
proxy.listen(common.PROXY_PORT);
52
53
proxy.on('listening', function () {
- require(path.join(process.cwd(), process.argv[2]));
54
+ console.log('Proxy server listening on ' + common.PROXY_PORT);
55
+ var testProcess = spawn(process.argv[0], [ process.argv[2] ]);
56
+ testProcess.stdout.pipe(process.stdout);
57
+ testProcess.stderr.pipe(process.stderr);
58
+ testProcess.on('exit', process.exit);
59
});
60
61
// vim:filetype=javascript
0 commit comments