Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MB-100: fix 'FailoverTests' object has no attribute '_servers'

Change-Id: I8a6e6d4640572d558cfa7a035d33af711cd691f0
Reviewed-on: http://review.couchbase.org/22773
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>
Tested-by: Andrei Baranouski <andrei.baranouski@gmail.com>
  • Loading branch information...
commit 43f9b1a6c93aa6487c462fb9f94a5bcbd53b093b 1 parent c94ddad
@andreibaranouski andreibaranouski authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 pytests/failovertests.py
View
6 pytests/failovertests.py
@@ -106,7 +106,7 @@ def common_test_body(self, keys_count, failover_reason):
rest = RestConnection(self.master)
nodes = rest.node_statuses()
- RebalanceHelper.wait_for_replication(self._servers, self.cluster)
+ RebalanceHelper.wait_for_replication(self.servers, self.cluster)
chosen = RebalanceHelper.pick_nodes(self.master, howmany=self.num_replicas)
for node in chosen:
#let's do op
@@ -123,7 +123,7 @@ def common_test_body(self, keys_count, failover_reason):
log.info("node {0}:{1} is 'unhealthy' as expected".format(node.ip, node.port))
else:
#verify iptables on the node if something wrong
- for server in self._servers:
+ for server in self.servers:
if server.ip == node.ip:
shell = RemoteMachineShellConnection(server)
o, r = shell.execute_command("/sbin/iptables --list")
@@ -165,7 +165,7 @@ def common_test_body(self, keys_count, failover_reason):
self._cleanup_nodes.append(server)
log.info("Begin VERIFICATION ...")
- RebalanceHelper.wait_for_replication(self._servers, self.cluster)
+ RebalanceHelper.wait_for_replication(_servers_, self.cluster)
self.verify_cluster_stats(_servers_, self.master)
Please sign in to comment.
Something went wrong with that request. Please try again.