nixos/tests/bazarr: fix eval error

The test still doesn't pass, it has some runtime issues as well.

Fixes: 5803706662 ("nixos/tests: fix type mismatch in wait_for_open_port")
This commit is contained in:
Bjørn Forsman 2022-10-17 12:46:39 +02:00
parent 92fe5610ff
commit 166c9c8269

View File

@ -16,11 +16,12 @@ in
enable = true;
listenPort = port;
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["unrar"];
};
testScript = ''
machine.wait_for_unit("bazarr.service")
machine.wait_for_open_port(port)
machine.wait_for_open_port(${toString port})
machine.succeed("curl --fail http://localhost:${toString port}/")
'';
})