mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-06-07 01:38:21 +00:00
recover test.js, ready to release beta version
This commit is contained in:
parent
cfc817cb1f
commit
5130553c38
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "anyproxy",
|
"name": "anyproxy",
|
||||||
"version": "3.7.7",
|
"version": "3.8.0Beta1",
|
||||||
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
||||||
"main": "proxy.js",
|
"main": "proxy.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -44,13 +44,7 @@ exports.avalibility = function(test){
|
|||||||
|
|
||||||
//test the basic availibility of proxy server
|
//test the basic availibility of proxy server
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
var testParam = {
|
proxyTester.test({proxy : 'http://127.0.0.1:8995',reqTimeout:4500} ,function(results){
|
||||||
proxy : 'http://127.0.0.1:8995',
|
|
||||||
reqTimeout : 4500,
|
|
||||||
httpsPostUrl : "http://www.sample.com/"
|
|
||||||
httpsPostBody : "123"
|
|
||||||
};
|
|
||||||
proxyTester.test(testParam ,function(results){
|
|
||||||
var successCount = 0;
|
var successCount = 0;
|
||||||
results.map(function(item){
|
results.map(function(item){
|
||||||
item.success && ++successCount;
|
item.success && ++successCount;
|
||||||
@ -64,4 +58,3 @@ exports.avalibility = function(test){
|
|||||||
});
|
});
|
||||||
},1000);
|
},1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user