about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2022-10-17 12:46:39 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-11-04 14:10:31 +0100
commit166c9c8269735d5bf3e49629f804bd7b995987f0 (patch)
tree6c233bbcf99866fe7c8200bdaf1fc25bfa38f297 /nixos
parent92fe5610ff59ca0b4ca585ce8446cba6de313b13 (diff)
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")
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/bazarr.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/bazarr.nix b/nixos/tests/bazarr.nix
index efcd9de010804..2e49c958dd002 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}/")
   '';
 })