THRIFT-1659 Bring nodejs default transport in line with Java default transport
diff --git a/test/nodejs/client.js b/test/nodejs/client.js
index 269aab3..d96400e 100644
--- a/test/nodejs/client.js
+++ b/test/nodejs/client.js
@@ -17,14 +17,14 @@
* under the License.
*/
var thrift = require('thrift');
-//var ttransport = require('transport');
+var ttransport = require('transport');
var assert = require('assert');
var ThriftTest = require('./gen-nodejs/ThriftTest'),
ttypes = require('./gen-nodejs/ThriftTest_types');
-//var connection = thrift.createConnection('localhost', 9090, { 'transport': ttransport.TFramedTransport }),
-var connection = thrift.createConnection('localhost', 9090),
+var connection = thrift.createConnection('localhost', 9090, { 'transport': ttransport.TFramedTransport }),
+//var connection = thrift.createConnection('localhost', 9090),
client = thrift.createClient(ThriftTest, connection);
connection.on('error', function(err) {
@@ -255,7 +255,7 @@
setTimeout(function() {
console.log("Server successfully tested!");
connection.end();
-}, 200);
+}, 1500);
// to make it also run on expresso
exports.expressoTest = function() {};