about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-11-12 20:23:34 -0500
committerGitHub <noreply@github.com>2023-11-12 20:23:34 -0500
commit025064944d15281bcf4458e33649d93672851ef9 (patch)
tree7a1baca46ed76cf84a7dbda809877a5fc6887b35 /nixos/tests
parent3620d64912f35e984fb5a1ce61b6c29fb48072d8 (diff)
parent5458e56907cada9b410a21ab6dfba10a2ae6a034 (diff)
downloadnixlib-025064944d15281bcf4458e33649d93672851ef9.tar
nixlib-025064944d15281bcf4458e33649d93672851ef9.tar.gz
nixlib-025064944d15281bcf4458e33649d93672851ef9.tar.bz2
nixlib-025064944d15281bcf4458e33649d93672851ef9.tar.lz
nixlib-025064944d15281bcf4458e33649d93672851ef9.tar.xz
nixlib-025064944d15281bcf4458e33649d93672851ef9.tar.zst
nixlib-025064944d15281bcf4458e33649d93672851ef9.zip
Merge pull request #267120 from teutat3s/zhf/fix-prometheus-exporter-smokeping
nixosTests.prometheus-exporters.smokeping fix test
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/prometheus-exporters.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix
index 4bad56991cc6..bccfe998f61a 100644
--- a/nixos/tests/prometheus-exporters.nix
+++ b/nixos/tests/prometheus-exporters.nix
@@ -1318,12 +1318,12 @@ let
         wait_for_open_port(9374)
         wait_until_succeeds(
             "curl -sSf localhost:9374/metrics | grep '{}' | grep -v ' 0$'".format(
-                'smokeping_requests_total{host="127.0.0.1",ip="127.0.0.1"} '
+                'smokeping_requests_total{host="127.0.0.1",ip="127.0.0.1",source=""} '
             )
         )
         wait_until_succeeds(
             "curl -sSf localhost:9374/metrics | grep '{}'".format(
-                'smokeping_response_ttl{host="127.0.0.1",ip="127.0.0.1"}'
+                'smokeping_response_ttl{host="127.0.0.1",ip="127.0.0.1",source=""}'
             )
         )
       '';