From b4580943e82c64d228df18bee1b5352bd19a3432 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 12 Sep 2013 17:55:16 +0200 Subject: [PATCH] Read test redis port configuration from test.js env --- test/support/config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/support/config.js b/test/support/config.js index 3581f896..d1dcf6e9 100644 --- a/test/support/config.js +++ b/test/support/config.js @@ -1,5 +1,8 @@ var _ = require('underscore'); + +require(__dirname + '/test_helper'); + module.exports = function(opts) { var config = { @@ -7,7 +10,7 @@ module.exports = function(opts) { max: 10, idleTimeoutMillis: 1, reapIntervalMillis: 1, - port: 6333 // TODO: read from test env ? + port: global.environment.redis.port } }