diff --git a/cluster/services/consul/test.nix b/cluster/services/consul/test.nix index 3a279bb..a292bdd 100644 --- a/cluster/services/consul/test.nix +++ b/cluster/services/consul/test.nix @@ -5,9 +5,10 @@ start_all() with subtest("should form cluster"): - for machine in machines: + nodes = [ n for n in machines if n != nowhere ] + for machine in nodes: machine.succeed("systemctl start consul-ready.service") - for machine in machines: + for machine in nodes: consulConfig = json.loads(machine.succeed("cat /etc/consul.json")) addr = consulConfig["addresses"]["http"] port = consulConfig["ports"]["http"]