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.
This commit is contained in:
kilianar 2022-07-20 21:58:10 +02:00 committed by Bjørn Forsman
parent 7eeaecfaea
commit 2133278f96

View File

@ -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}")
'';