From 2133278f96966989cb7693cc289def2bedfd6c05 Mon Sep 17 00:00:00 2001 From: kilianar Date: Wed, 20 Jul 2022 21:58:10 +0200 Subject: [PATCH] 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. --- nixos/tests/podgrab.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/podgrab.nix b/nixos/tests/podgrab.nix index e5a340dc2ac8..dc9dfebaf49b 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}") '';