about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2024-03-24 12:43:02 +0100
committerAnthony Roussel <anthony@roussel.dev>2024-03-25 18:49:46 +0100
commite994c804b6d0c3d2e94548426378da6bfaa804e8 (patch)
treec86a083c6dcc99da727c25fc2eb9658268a1dca6 /nixos
parentb110971a7a2f170cf7beca33a727a827836533b4 (diff)
downloadnixlib-e994c804b6d0c3d2e94548426378da6bfaa804e8.tar
nixlib-e994c804b6d0c3d2e94548426378da6bfaa804e8.tar.gz
nixlib-e994c804b6d0c3d2e94548426378da6bfaa804e8.tar.bz2
nixlib-e994c804b6d0c3d2e94548426378da6bfaa804e8.tar.lz
nixlib-e994c804b6d0c3d2e94548426378da6bfaa804e8.tar.xz
nixlib-e994c804b6d0c3d2e94548426378da6bfaa804e8.tar.zst
nixlib-e994c804b6d0c3d2e94548426378da6bfaa804e8.zip
nixosTests.goss: fix unstable test
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/goss.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/nixos/tests/goss.nix b/nixos/tests/goss.nix
index 6b772d19215e..2e77b2734464 100644
--- a/nixos/tests/goss.nix
+++ b/nixos/tests/goss.nix
@@ -28,10 +28,6 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
         };
         group.root.exists = true;
         kernel-param."kernel.ostype".value = "Linux";
-        service.goss = {
-          enabled = true;
-          running = true;
-        };
         user.root.exists = true;
       };
     };
@@ -46,8 +42,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
     with subtest("returns health status"):
       result = json.loads(machine.succeed("curl -sS http://localhost:8080/healthz"))
 
-      assert len(result["results"]) == 10, f".results should be an array of 10 items, was {result['results']!r}"
+      assert len(result["results"]) == 8, f".results should be an array of 10 items, was {result['results']!r}"
       assert result["summary"]["failed-count"] == 0, f".summary.failed-count should be zero, was {result['summary']['failed-count']}"
-      assert result["summary"]["test-count"] == 10, f".summary.test-count should be 10, was {result['summary']['test-count']}"
+      assert result["summary"]["test-count"] == 8, f".summary.test-count should be 10, was {result['summary']['test-count']}"
     '';
 })