fixup! cluster/services/patroni: test in simulacrum
This commit is contained in:
parent
c9b12007ce
commit
75ec639648
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ in
|
|||
|
||||
with subtest("should be able to run queries while any one node is crashed"):
|
||||
masterNodeName = nodes[0].succeed("patronictl list -f json ${clusterName} | jq '.[] | select(.Role | test(\"^Leader$\")) | .Member' -r").strip()
|
||||
masterNodeIndex = next((i for i, v in enumerate(nodes) if v.name == masterNodeName), None)
|
||||
masterNodeIndex = next((i for i, v in enumerate(nodes) if v.name == masterNodeName))
|
||||
|
||||
# Move master node at the end of the list to avoid multiple failovers (makes the test faster and more consistent)
|
||||
nodes.append(nodes.pop(masterNodeIndex))
|
||||
|
|
Loading…
Reference in a new issue