mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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:
parent
7eeaecfaea
commit
2133278f96
@ -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}")
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user