about summary refs log tree commit diff
path: root/nixos/tests/podgrab.nix
diff options
context:
space:
mode:
authorkilianar <mail@kilianar.de>2022-07-20 21:58:10 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-07-23 17:19:01 +0200
commit2133278f96966989cb7693cc289def2bedfd6c05 (patch)
tree7e092cc811ab022a1607e01c6426c7bc2f6544d5 /nixos/tests/podgrab.nix
parent7eeaecfaea6f5a76cdd76f6a77f04fbc9bf43556 (diff)
nixosTests.podgrab: fix failing test
defaultPort and customPort aren't python variables causing the test to
fail. We instead use the nix variables with string interpolation.
Diffstat (limited to 'nixos/tests/podgrab.nix')
-rw-r--r--nixos/tests/podgrab.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/podgrab.nix b/nixos/tests/podgrab.nix
index e5a340dc2ac83..dc9dfebaf49bd 100644
--- a/nixos/tests/podgrab.nix
+++ b/nixos/tests/podgrab.nix
@@ -22,11 +22,11 @@ import ./make-test-python.nix ({ pkgs, ... }: {
     start_all()
 
     default.wait_for_unit("podgrab")
-    default.wait_for_open_port(defaultPort)
+    default.wait_for_open_port(${toString defaultPort})
     default.succeed("curl --fail http://localhost:${toString defaultPort}")
 
     customized.wait_for_unit("podgrab")
-    customized.wait_for_open_port(customPort)
+    customized.wait_for_open_port(${toString customPort})
     customized.succeed("curl --fail http://localhost:${toString customPort}")
   '';