Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
node-http-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
node-http-proxy
Commits
87949a87
Commit
87949a87
authored
Oct 28, 2011
by
Maciej Małecki
Committed by
Cédric de Saint Martin
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix test] Make test runner exit after test exits
parent
0484197c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
test/core/run
test/core/run
+6
-1
No files found.
test/core/run
View file @
87949a87
...
...
@@ -35,6 +35,7 @@
//
var
path
=
require
(
'
path
'
),
spawn
=
require
(
'
child_process
'
).
spawn
,
httpProxy
=
require
(
'
../../
'
),
common
=
require
(
'
./common
'
);
...
...
@@ -50,7 +51,11 @@ var proxy = httpProxy.createServer(common.PORT, 'localhost');
proxy
.
listen
(
common
.
PROXY_PORT
);
proxy
.
on
(
'
listening
'
,
function
()
{
require
(
path
.
join
(
process
.
cwd
(),
process
.
argv
[
2
]));
console
.
log
(
'
Proxy server listening on
'
+
common
.
PROXY_PORT
);
var
testProcess
=
spawn
(
process
.
argv
[
0
],
[
process
.
argv
[
2
]
]);
testProcess
.
stdout
.
pipe
(
process
.
stdout
);
testProcess
.
stderr
.
pipe
(
process
.
stderr
);
testProcess
.
on
(
'
exit
'
,
process
.
exit
);
});
// vim:filetype=javascript
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment