mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(test/bash) restore original fixtures script
This commit is contained in:
parent
e550dda8a6
commit
aa7bce3500
8
test/fixtures/child.js
vendored
8
test/fixtures/child.js
vendored
@ -1,14 +1,10 @@
|
||||
|
||||
var http = require('http');
|
||||
|
||||
var app = http.createServer(function(req, res) {
|
||||
http.createServer(function(req, res) {
|
||||
res.writeHead(200);
|
||||
res.end('hey');
|
||||
})
|
||||
|
||||
var listener = app.listen(0, function() {
|
||||
console.log('Listening on port ' + listener.address().port);
|
||||
});
|
||||
}).listen(0);
|
||||
|
||||
process.on('message', function(msg) {
|
||||
if (msg == 'shutdown') {
|
||||
|
||||
21
test/fixtures/http.js
vendored
Normal file
21
test/fixtures/http.js
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
var http = require('http');
|
||||
|
||||
var app = http.createServer(function(req, res) {
|
||||
res.writeHead(200);
|
||||
res.end('hey');
|
||||
})
|
||||
|
||||
var listener = app.listen(0, function() {
|
||||
console.log('Listening on port ' + listener.address().port);
|
||||
});
|
||||
|
||||
process.on('message', function(msg) {
|
||||
if (msg == 'shutdown') {
|
||||
console.log('Closing all connections...');
|
||||
setTimeout(function() {
|
||||
console.log('Finished closing connections');
|
||||
process.exit(0);
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user