THRIFT-2493:Node.js lib needs HTTP client
Client: node
Patch: Randy Abernethy

Adds http client to node.js along with tests.
diff --git a/lib/nodejs/test/thrift_test_driver.js b/lib/nodejs/test/thrift_test_driver.js
index ccc105b..a21c9c5 100644
--- a/lib/nodejs/test/thrift_test_driver.js
+++ b/lib/nodejs/test/thrift_test_driver.js
@@ -288,7 +288,7 @@
     test_complete = true;

   });

 

-//We wait up to retry_limit * retry_interval for the test suite to complete

+  //We wait up to retry_limit * retry_interval for the test suite to complete

   function TestForCompletion() {

     if(test_complete) {

       if (callback) {

@@ -298,14 +298,14 @@
       if (++retrys < retry_limit) {

         setTimeout(TestForCompletion, retry_interval);

       } else {

-    if (callback) {

-      callback("Server test failed to complete after " +

-        (retry_limit*retry_interval/1000) + " seconds");

-    }

+        if (callback) {

+          callback("Server test failed to complete after " +

+                   (retry_limit*retry_interval/1000) + " seconds");

+        }

       }

     }

   }

 

   setTimeout(TestForCompletion, retry_interval);

 })();

-}

+};