From 1226ee20129da446a3318f6fa144bbf0b35024e0 Mon Sep 17 00:00:00 2001 From: brianc Date: Sat, 5 Mar 2011 11:32:10 -0600 Subject: [PATCH] only test for client configuration during pure-js tests --- .../integration/client/configuration-tests.js | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/test/integration/client/configuration-tests.js b/test/integration/client/configuration-tests.js index 7ebb330..ee8413a 100644 --- a/test/integration/client/configuration-tests.js +++ b/test/integration/client/configuration-tests.js @@ -1,4 +1,4 @@ -require(__dirname + '/test-helper'); +var helper = require(__dirname + '/test-helper'); var pg = require("index"); test('default values', function() { @@ -21,24 +21,26 @@ test('default values', function() { }) }) -test('modified values', function() { - return false; - pg.defaults.user = 'boom' - pg.defaults.password = 'zap' - pg.defaults.database = 'pow' - pg.defaults.port = 1234 - pg.defaults.host = 'blam' - pg.defaults.rows = 10 - pg.defaults.poolSize = 0 +if(!helper.args.native) { + test('modified values', function() { + pg.defaults.user = 'boom' + pg.defaults.password = 'zap' + pg.defaults.database = 'pow' + pg.defaults.port = 1234 + pg.defaults.host = 'blam' + pg.defaults.rows = 10 + pg.defaults.poolSize = 0 - test('are passed into created clients', function() { - var client = new Client(); - assert.same(client,{ - user: 'boom', - password: 'zap', - database: 'pow', - port: 1234, - host: 'blam' + test('are passed into created clients', function() { + var client = new Client(); + assert.same(client,{ + user: 'boom', + password: 'zap', + database: 'pow', + port: 1234, + host: 'blam' + }) }) }) -}) +} +