From eb28079d8764d1b325c97b024488d8b5573625a5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 14 Jun 2026 14:29:44 +0200 Subject: [PATCH] nixosTests/prometheus-exporters/nextcloud: fix robustness In a busy execution environment the exporter can be started and still fail the initial request. --- nixos/tests/prometheus-exporters.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 39954240f64e..b1033987565a 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -1112,7 +1112,7 @@ let wait_for_unit("nginx.service") wait_for_unit("prometheus-nextcloud-exporter.service") wait_for_open_port(9205) - succeed("curl -sSf http://localhost:9205/metrics | grep 'nextcloud_up 1'") + wait_until_succeeds("curl -sSf http://localhost:9205/metrics | grep 'nextcloud_up 1'") ''; };