mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
http node fix tests
This commit is contained in:
parent
de27968e4e
commit
7bdb8db5ff
@ -1789,7 +1789,9 @@ describe('HTTP Request Node', function() {
|
|||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
it('should use http_proxy when environment variable is invalid', function(done) {
|
// disabled with the introduction of proxyHelper. It is the responsibility of the user to enter a
|
||||||
|
// valid proxy URL
|
||||||
|
it.skip('should use http_proxy when environment variable is invalid', function(done) {
|
||||||
var flow = [{id:"n1",type:"http request",wires:[["n2"]],method:"POST",ret:"obj",url:getTestURL('/postInspect')},
|
var flow = [{id:"n1",type:"http request",wires:[["n2"]],method:"POST",ret:"obj",url:getTestURL('/postInspect')},
|
||||||
{id:"n2", type:"helper"}];
|
{id:"n2", type:"helper"}];
|
||||||
deleteProxySetting();
|
deleteProxySetting();
|
||||||
@ -1908,7 +1910,9 @@ describe('HTTP Request Node', function() {
|
|||||||
});
|
});
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
it('should not use http-proxy-config when invalid url is specified', function(done) {
|
// disabled with the introduction of proxyHelper. It is the responsibility of the user to enter a
|
||||||
|
// valid proxy URL
|
||||||
|
it.skip('should not use http-proxy-config when invalid url is specified', function(done) {
|
||||||
var flow = [
|
var flow = [
|
||||||
{id:"n1",type:"http request",wires:[["n2"]],method:"POST",ret:"obj",url:getTestURL('/postInspect'),proxy:"n3"},
|
{id:"n1",type:"http request",wires:[["n2"]],method:"POST",ret:"obj",url:getTestURL('/postInspect'),proxy:"n3"},
|
||||||
{id:"n2", type:"helper"},
|
{id:"n2", type:"helper"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user