From 06043e438ee91aa7980427c79d8d9c4c60bf43b8 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 13 Aug 2024 22:07:28 +0200 Subject: [PATCH] fixup! cluster/services/consul: test in simulacrum --- cluster/services/consul/test.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"]