Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge "make mongodb unit test pass even without dev_setup env" into s…
Browse files Browse the repository at this point in the history
…ervices-r10
  • Loading branch information
cliffwang authored and Gerrit Code Review committed Mar 13, 2012
2 parents d87fd5a + 7df1576 commit 5cab0f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mongodb/spec/config/mongodb_backup.yml.erb
Expand Up @@ -2,7 +2,7 @@ service_name: mongodb
backup_base_dir: <%= BACKUP_DIR %>
local_db: sqlite3:/tmp/mongo/mongodb_node.db
service_base_dir: /tmp/mongo/instances
mongodump_path: <%= BINARY_DIR %>/mongodump
mongodump_path: <%= BINARY_DIR %>mongodump
timeout: 10
logging:
level: debug
3 changes: 2 additions & 1 deletion mongodb/spec/mongodb_backup_spec.rb
Expand Up @@ -9,7 +9,8 @@
@opts = get_node_config()
@logger = @opts[:logger]

BINARY_DIR = File.dirname(@opts[:mongod_path])
@opts[:mongod_path].match "(.+#{File::SEPARATOR}).+"
BINARY_DIR = $1

@config_template = ERB.new(File.read(TEMPLATE_FILE))
config = @config_template.result(binding)
Expand Down

0 comments on commit 5cab0f4

Please sign in to comment.