nixosTests/prometheus-exporters/nextcloud: fix robustness

In a busy execution environment the exporter can be started and still
fail the initial request.
This commit is contained in:
Martin Weinelt
2026-06-14 14:31:12 +02:00
parent b53df16cc9
commit eb28079d87
+1 -1
View File
@@ -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'")
'';
};