mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-06-05 16:58:22 +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",
|
||||
"version": "3.7.7",
|
||||
"version": "3.8.0Beta1",
|
||||
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
||||
"main": "proxy.js",
|
||||
"bin": {
|
||||
|
@ -44,13 +44,7 @@ exports.avalibility = function(test){
|
||||
|
||||
//test the basic availibility of proxy server
|
||||
setTimeout(function(){
|
||||
var testParam = {
|
||||
proxy : 'http://127.0.0.1:8995',
|
||||
reqTimeout : 4500,
|
||||
httpsPostUrl : "http://www.sample.com/"
|
||||
httpsPostBody : "123"
|
||||
};
|
||||
proxyTester.test(testParam ,function(results){
|
||||
proxyTester.test({proxy : 'http://127.0.0.1:8995',reqTimeout:4500} ,function(results){
|
||||
var successCount = 0;
|
||||
results.map(function(item){
|
||||
item.success && ++successCount;
|
||||
@ -64,4 +58,3 @@ exports.avalibility = function(test){
|
||||
});
|
||||
},1000);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user