1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-19 12:57:29 +02:00

tests: update to match new sd-switch version

Also, seems Nix has become more memory hungry so increase memory
allocation.
This commit is contained in:
Robert Helgesson 2024-07-07 23:13:28 +02:00
parent dfaf0ff2e7
commit 2fb5c1e0a1
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
3 changed files with 5 additions and 3 deletions

View file

@ -7,6 +7,8 @@
nodes.machine = { ... }: {
imports = [ ../../../nixos ]; # Import the HM NixOS module.
virtualisation.memorySize = 2048;
users.users.alice = {
isNormalUser = true;
description = "Alice Foobar";

View file

@ -6,7 +6,7 @@
nodes.machine = { ... }: {
imports = [ "${pkgs.path}/nixos/modules/installer/cd-dvd/channel.nix" ];
virtualisation.memorySize = 2048;
virtualisation.memorySize = 3072;
nix = {
registry.home-manager.to = {
type = "path";
@ -88,7 +88,7 @@
} /home/alice/.config/home-manager/home.nix")
actual = succeed_as_alice("home-manager switch")
expected = "Started pueued.service - active"
expected = "Starting units: pueued.service"
assert expected in actual, \
f"expected home-manager switch to contain {expected}, but got {actual}"

View file

@ -85,7 +85,7 @@
} /home/alice/.config/home-manager/home.nix")
actual = succeed_as_alice("home-manager switch")
expected = "Started pueued.service - active"
expected = "Starting units: pueued.service"
assert expected in actual, \
f"expected home-manager switch to contain {expected}, but got {actual}"