Permalink
Browse files

[services-ng] Fix redis unit test based on bind-mount way

Change-Id: Ic98276816d52f8f46e953e59474ca8ea63a31c6a
  • Loading branch information...
Tang Rui
Tang Rui committed Dec 6, 2012
1 parent d94ebf9 commit bd446a7b1f9c4ce94c78c0dbea973eda3099f833
Showing with 3 additions and 1 deletion.
  1. +1 −1 ng/redis/spec/node_spec.rb
  2. +2 −0 ng/redis/spec/spec_helper.rb
@@ -27,7 +27,7 @@ class Node
@node = VCAP::Services::Redis::Node.new(@options)
EM.add_timer(1) {EM.stop}
end
- @redis_port = @node.options[:instance_port]
+ @redis_port = @node.options[:service_port]
end
after :all do
@@ -59,6 +59,8 @@ def getNodeTestConfig
:port_range => parse_property(config, "port_range", Range),
:max_memory => parse_property(config, "max_memory", Integer),
:service_log_dir => "/tmp/redis_log",
+ :service_script_dir => "/var/vcap/jobs/redis_node_ng/bin",
+ :service_bin_dir => {"2.2" => "/var/vcap/packages/redis22", "2.4" => "/var/vcap/packages/redis24", "2.6" => "/var/vcap/packages/redis26"},
:command_rename_prefix => parse_property(config, "command_rename_prefix", String),
:max_clients => parse_property(config, "max_clients", Integer, :optional => true),
:image_dir => "/tmp/redis_image",

0 comments on commit bd446a7

Please sign in to comment.