diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index dc07c5e2da65..7a3fb5e5ebe8 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -803,7 +803,7 @@ in { nginx-etag-compression = runTest ./nginx-etag-compression.nix; nginx-globalredirect = runTest ./nginx-globalredirect.nix; nginx-http3 = handleTest ./nginx-http3.nix {}; - nginx-mime = handleTest ./nginx-mime.nix {}; + nginx-mime = runTest ./nginx-mime.nix; nginx-modsecurity = handleTest ./nginx-modsecurity.nix {}; nginx-moreheaders = handleTest ./nginx-moreheaders.nix {}; nginx-njs = handleTest ./nginx-njs.nix {}; diff --git a/nixos/tests/nginx-mime.nix b/nixos/tests/nginx-mime.nix index 157b9f13f142..9752fc01370b 100644 --- a/nixos/tests/nginx-mime.nix +++ b/nixos/tests/nginx-mime.nix @@ -1,26 +1,24 @@ -import ./make-test-python.nix ( - { lib, pkgs, ... }: - { - name = "nginx-mime"; - meta.maintainers = with pkgs.lib.maintainers; [ izorkin ]; +{ lib, pkgs, ... }: +{ + name = "nginx-mime"; + meta.maintainers = with pkgs.lib.maintainers; [ izorkin ]; - nodes = { - server = - { pkgs, ... }: - { - services.nginx = { - enable = true; - virtualHosts."localhost" = { }; - }; + nodes = { + server = + { pkgs, ... }: + { + services.nginx = { + enable = true; + virtualHosts."localhost" = { }; }; - }; + }; + }; - testScript = '' - server.start() - server.wait_for_unit("nginx") - # Check optimal size of types_hash - server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'") - server.shutdown() - ''; - } -) + testScript = '' + server.start() + server.wait_for_unit("nginx") + # Check optimal size of types_hash + server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'") + server.shutdown() + ''; +}