diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index abb494371225..34fd7b62d25f 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -182,7 +182,7 @@ in { atop = handleTest ./atop.nix {}; atticd = runTest ./atticd.nix; atuin = runTest ./atuin.nix; - audiobookshelf = handleTest ./audiobookshelf.nix {}; + audiobookshelf = runTest ./audiobookshelf.nix; auth-mysql = handleTest ./auth-mysql.nix {}; authelia = handleTest ./authelia.nix {}; auto-cpufreq = handleTest ./auto-cpufreq.nix {}; diff --git a/nixos/tests/audiobookshelf.nix b/nixos/tests/audiobookshelf.nix index a4dce23abaf8..8e942f4dddef 100644 --- a/nixos/tests/audiobookshelf.nix +++ b/nixos/tests/audiobookshelf.nix @@ -1,22 +1,20 @@ -import ./make-test-python.nix ( - { lib, ... }: - { - name = "audiobookshelf"; - meta.maintainers = with lib.maintainers; [ wietsedv ]; +{ lib, ... }: +{ + name = "audiobookshelf"; + meta.maintainers = with lib.maintainers; [ wietsedv ]; - nodes.machine = - { pkgs, ... }: - { - services.audiobookshelf = { - enable = true; - port = 1234; - }; + nodes.machine = + { pkgs, ... }: + { + services.audiobookshelf = { + enable = true; + port = 1234; }; + }; - testScript = '' - machine.wait_for_unit("audiobookshelf.service") - machine.wait_for_open_port(1234) - machine.succeed("curl --fail http://localhost:1234/") - ''; - } -) + testScript = '' + machine.wait_for_unit("audiobookshelf.service") + machine.wait_for_open_port(1234) + machine.succeed("curl --fail http://localhost:1234/") + ''; +}