summary refs log tree commit diff
path: root/nixos/tests/prometheus-exporters.nix
diff options
context:
space:
mode:
authorkilianar <105428155+kilianar@users.noreply.github.com>2022-08-05 13:59:00 +0200
committerGitHub <noreply@github.com>2022-08-05 19:59:00 +0800
commit02e32729c36e095539bbb8003c29b5dcac6dcd6a (patch)
treed74a96523dc0aef52c142f2349a3bce612419096 /nixos/tests/prometheus-exporters.nix
parent8bee9fa1170f82bd7334485a976d2390b02b353d (diff)
downloadnixpkgs-02e32729c36e095539bbb8003c29b5dcac6dcd6a.tar
nixpkgs-02e32729c36e095539bbb8003c29b5dcac6dcd6a.tar.gz
nixpkgs-02e32729c36e095539bbb8003c29b5dcac6dcd6a.tar.bz2
nixpkgs-02e32729c36e095539bbb8003c29b5dcac6dcd6a.tar.lz
nixpkgs-02e32729c36e095539bbb8003c29b5dcac6dcd6a.tar.xz
nixpkgs-02e32729c36e095539bbb8003c29b5dcac6dcd6a.tar.zst
nixpkgs-02e32729c36e095539bbb8003c29b5dcac6dcd6a.zip
nixosTests.prometheus-exporters.smartctl: fix type mismatch
The method wait_for_open_port used in the smartctl test expects an int
but was given a string.

Fix the same issue in the example in the comments.
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-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 0a1ec824986..d14c737a4bd 100644
--- a/nixos/tests/prometheus-exporters.nix
+++ b/nixos/tests/prometheus-exporters.nix
@@ -35,7 +35,7 @@ let
     *      };
     *      exporterTest = ''
     *        wait_for_unit("prometheus-<exporterName>-exporter.service")
-    *        wait_for_open_port("1234")
+    *        wait_for_open_port(1234)
     *        succeed("curl -sSf 'localhost:1234/metrics'")
     *      '';
     *    };
@@ -1063,7 +1063,7 @@ let
       };
       exporterTest = ''
         wait_for_unit("prometheus-smartctl-exporter.service")
-        wait_for_open_port("9633")
+        wait_for_open_port(9633)
         wait_until_succeeds(
           "curl -sSf 'localhost:9633/metrics'"
         )