Permalink
Browse files

Make auto-failover common_tests work with current version.

The config key changed from auto_failover to auto_failover_cfg.

Change-Id: Ie7a9ab9e765280f5a148532654f5c46c6c060f95
Reviewed-on: http://review.couchbase.org/7772
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information...
vmx authored and alk committed Jul 7, 2011
1 parent e068fc6 commit 2bee9bad78ef157a7056151c2966bcf2b8c74bca
Showing with 6 additions and 3 deletions.
  1. +6 −3 common_tests/auto_failover_SUITE.erl
@@ -165,7 +165,8 @@ auto_failover_enabled_master_node_down(TestConfig) ->
ok = rpc:call('n_0@127.0.0.1', auto_failover, enable, [5, 1]),
% Make sure the ns_config was propagated to the other node
- ok = wait_for_ns_config('n_1@127.0.0.1', {auto_failover, enabled}, true),
+ ok = wait_for_ns_config('n_1@127.0.0.1', {auto_failover_cfg, enabled},
+ true),
% Stop the node auto_failover is running on
ok = ns_test_util:stop_node(lists:nth(1, Nodes)),
@@ -278,8 +279,10 @@ auto_failover_enabled_master_node_down_preserve_count(TestConfig) ->
ok = rpc:call('n_0@127.0.0.1', auto_failover, enable, [5, 1]),
% Make sure the ns_config was propagated to the other nodes
- ok = wait_for_ns_config('n_1@127.0.0.1', {auto_failover, enabled}, true),
- ok = wait_for_ns_config('n_2@127.0.0.1', {auto_failover, enabled}, true),
+ ok = wait_for_ns_config('n_1@127.0.0.1', {auto_failover_cfg, enabled},
+ true),
+ ok = wait_for_ns_config('n_2@127.0.0.1', {auto_failover_cfg, enabled},
+ true),
% Stop the node auto_failover is running on
ok = ns_test_util:stop_node(lists:nth(1, Nodes)),

0 comments on commit 2bee9ba

Please sign in to comment.