about summary refs log tree commit diff
path: root/nixos/tests/sonarr.nix
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2019-12-15 18:24:45 +0100
committerChristian Kampka <christian@kampka.net>2019-12-15 18:24:45 +0100
commitbcf6aa5519c041301042abf38aeff6127b7c4567 (patch)
tree0416201235f8e2260d637355e63d7dd5bf2e4380 /nixos/tests/sonarr.nix
parentaeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0 (diff)
nixosTests.sonarr: Port tests to python
Diffstat (limited to 'nixos/tests/sonarr.nix')
-rw-r--r--nixos/tests/sonarr.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/sonarr.nix b/nixos/tests/sonarr.nix
index 3e84445099abe..764a4d05b381b 100644
--- a/nixos/tests/sonarr.nix
+++ b/nixos/tests/sonarr.nix
@@ -1,4 +1,4 @@
-import ./make-test.nix ({ lib, ... }:
+import ./make-test-python.nix ({ lib, ... }:
 
 with lib;
 
@@ -11,8 +11,8 @@ with lib;
     { services.sonarr.enable = true; };
 
   testScript = ''
-    $machine->waitForUnit('sonarr.service');
-    $machine->waitForOpenPort('8989');
-    $machine->succeed("curl --fail http://localhost:8989/");
+    machine.wait_for_unit("sonarr.service")
+    machine.wait_for_open_port("8989")
+    machine.succeed("curl --fail http://localhost:8989/")
   '';
 })