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:
@@ -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'")
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user