recover test.js, ready to release beta version

This commit is contained in:
OttoMao 2015-10-24 23:40:23 +08:00
parent cfc817cb1f
commit 5130553c38
2 changed files with 40 additions and 47 deletions

View File

@ -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": {

View File

@ -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);
};