about summary refs log tree commit diff
path: root/nixos/tests/patroni.nix
diff options
context:
space:
mode:
authorAdam Stephens <adam@valkor.net>2024-05-05 15:59:07 -0400
committerAdam Stephens <adam@valkor.net>2024-05-05 16:37:18 -0400
commit3d20a75e9a6d0e67d185d173d1860414da51db4c (patch)
tree5e494675f78f70297f1226dcb307650422d112d5 /nixos/tests/patroni.nix
parent8bc61d88486e1c67e0ead7c26a53c041ebb4d6ec (diff)
patroni: 2.1.3 -> 3.3.0
https://github.com/zalando/patroni/blob/v3.3.0/docs/releases.rst#version-330
Diffstat (limited to 'nixos/tests/patroni.nix')
-rw-r--r--nixos/tests/patroni.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/patroni.nix b/nixos/tests/patroni.nix
index 1f15cd59677ad..68fce4051553e 100644
--- a/nixos/tests/patroni.nix
+++ b/nixos/tests/patroni.nix
@@ -155,7 +155,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
               print(node.succeed("patronictl list cluster1"))
               node.wait_until_succeeds(f"[ $(patronictl list -f json cluster1 | jq 'length') == {expected_replicas + 1} ]")
               node.wait_until_succeeds("[ $(patronictl list -f json cluster1 | jq 'map(select(.Role | test(\"^Leader$\"))) | map(select(.State | test(\"^running$\"))) | length') == 1 ]")
-              node.wait_until_succeeds(f"[ $(patronictl list -f json cluster1 | jq 'map(select(.Role | test(\"^Replica$\"))) | map(select(.State | test(\"^running$\"))) | length') == {expected_replicas} ]")
+              node.wait_until_succeeds(f"[ $(patronictl list -f json cluster1 | jq 'map(select(.Role | test(\"^Replica$\"))) | map(select(.State | test(\"^streaming$\"))) | length') == {expected_replicas} ]")
               print(node.succeed("patronictl list cluster1"))
           client.wait_until_succeeds("psql -h 127.0.0.1 -U postgres --command='select 1;'")