Read test redis port configuration from test.js env

This commit is contained in:
Sandro Santilli
2013-12-17 17:17:11 +01:00
parent 730f9534dc
commit b4580943e8
+4 -1
View File
@@ -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
}
}