diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-12-16 22:51:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 22:51:06 +0100 |
commit | 528a316b3165502f486ce6f663562d47e2b21d65 (patch) | |
tree | 9ad0284c4c9fbef63c7540d0ecb48d4ab9fa516b /nixos/tests/prometheus-exporters.nix | |
parent | c338bf32445bc1a136a30dd3f765ac11e20ccd0f (diff) | |
parent | 096991f29fcb644903731b629ada89e0d1e35591 (diff) | |
download | nixpkgs-528a316b3165502f486ce6f663562d47e2b21d65.tar nixpkgs-528a316b3165502f486ce6f663562d47e2b21d65.tar.gz nixpkgs-528a316b3165502f486ce6f663562d47e2b21d65.tar.bz2 nixpkgs-528a316b3165502f486ce6f663562d47e2b21d65.tar.lz nixpkgs-528a316b3165502f486ce6f663562d47e2b21d65.tar.xz nixpkgs-528a316b3165502f486ce6f663562d47e2b21d65.tar.zst nixpkgs-528a316b3165502f486ce6f663562d47e2b21d65.zip |
Merge pull request #205246 from Frostman/unpoller-2.4.0
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index fa8c59170bf..7264bd5a498 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -1244,10 +1244,8 @@ let exporterConfig.enable = true; exporterConfig.controllers = [{ }]; exporterTest = '' - wait_for_unit("prometheus-unpoller-exporter.service") - wait_for_open_port(9130) - succeed( - "curl -sSf localhost:9130/metrics | grep 'unpoller_build_info{.\\+} 1'" + wait_until_succeeds( + 'journalctl -eu prometheus-unpoller-exporter.service -o cat | grep "Connection Error"' ) ''; }; |