From 166c9c8269735d5bf3e49629f804bd7b995987f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Mon, 17 Oct 2022 12:46:39 +0200 Subject: [PATCH] nixos/tests/bazarr: fix eval error The test still doesn't pass, it has some runtime issues as well. Fixes: 580370666239 ("nixos/tests: fix type mismatch in wait_for_open_port") --- nixos/tests/bazarr.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/tests/bazarr.nix b/nixos/tests/bazarr.nix index efcd9de01080..2e49c958dd00 100644 --- a/nixos/tests/bazarr.nix +++ b/nixos/tests/bazarr.nix @@ -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}/") ''; })