mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fixed testing logic
This commit is contained in:
parent
8d67e28977
commit
1793d9a882
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ module.exports.connect = () ->
|
|||
|
||||
|
||||
module.exports.generateMongoConnectionString = ->
|
||||
if config.mongo.mongoose_replica_string
|
||||
if not testing and config.mongo.mongoose_replica_string
|
||||
address = config.mongo.mongoose_replica_string
|
||||
else
|
||||
dbName = config.mongo.db
|
||||
|
@ -25,4 +25,4 @@ module.exports.generateMongoConnectionString = ->
|
|||
address = config.mongo.username + ":" + config.mongo.password + "@" + address
|
||||
address = "mongodb://#{address}/#{dbName}"
|
||||
|
||||
return address
|
||||
return address
|
||||
|
|
Loading…
Add table
Reference in a new issue