mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add debug for http tests
This commit is contained in:
parent
ae5e1570ae
commit
d7dcceef60
@ -81,6 +81,7 @@ describe('HTTP Request Node', function() {
|
|||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
testSslServer = stoppable(https.createServer(sslOptions,testApp));
|
testSslServer = stoppable(https.createServer(sslOptions,testApp));
|
||||||
|
console.log('> start testSslServer')
|
||||||
testSslServer.listen(testSslPort, function(err){
|
testSslServer.listen(testSslPort, function(err){
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
@ -97,6 +98,7 @@ describe('HTTP Request Node', function() {
|
|||||||
requestCert: true
|
requestCert: true
|
||||||
};
|
};
|
||||||
testSslClientServer = stoppable(https.createServer(sslClientOptions, testApp));
|
testSslClientServer = stoppable(https.createServer(sslClientOptions, testApp));
|
||||||
|
console.log('> start testSslClientServer.listen')
|
||||||
testSslClientServer.listen(testSslClientPort, function(err){
|
testSslClientServer.listen(testSslClientPort, function(err){
|
||||||
console.log("ssl-client", err)
|
console.log("ssl-client", err)
|
||||||
});
|
});
|
||||||
@ -109,7 +111,10 @@ describe('HTTP Request Node', function() {
|
|||||||
res.setHeader("x-testproxy-header", "foobar")
|
res.setHeader("x-testproxy-header", "foobar")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
testProxyServer.listen(testProxyPort)
|
console.log('> testProxyServer')
|
||||||
|
testProxyServer.listen(testProxyPort, function(err) {
|
||||||
|
console.log('testProxyServer start', err)
|
||||||
|
})
|
||||||
|
|
||||||
testProxyAuthPort += 1
|
testProxyAuthPort += 1
|
||||||
testProxyServerAuth = stoppable(httpProxy(http.createServer()))
|
testProxyServerAuth = stoppable(httpProxy(http.createServer()))
|
||||||
@ -131,7 +136,10 @@ describe('HTTP Request Node', function() {
|
|||||||
res.setHeader("x-testproxy-header", "foobar")
|
res.setHeader("x-testproxy-header", "foobar")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
testProxyServerAuth.listen(testProxyAuthPort)
|
console.log('> testProxyServerAuth')
|
||||||
|
testProxyServerAuth.listen(testProxyAuthPort, function(err) {
|
||||||
|
console.log('testProxyServerAuth start', err)
|
||||||
|
})
|
||||||
|
|
||||||
done(err);
|
done(err);
|
||||||
});
|
});
|
||||||
@ -429,7 +437,11 @@ describe('HTTP Request Node', function() {
|
|||||||
if (err) {
|
if (err) {
|
||||||
done(err);
|
done(err);
|
||||||
}
|
}
|
||||||
helper.startServer(done);
|
console.log('> helper.startServer')
|
||||||
|
helper.startServer(function(err) {
|
||||||
|
console.log('> helper started')
|
||||||
|
done(err)
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user