diff --git a/nixproc/backends/systemd/test-module/default.nix b/nixproc/backends/systemd/test-module/default.nix index eddc0b3..0e76e8d 100644 --- a/nixproc/backends/systemd/test-module/default.nix +++ b/nixproc/backends/systemd/test-module/default.nix @@ -30,6 +30,7 @@ in '' + pkgs.lib.optionalString profileSettings.params.forceDisableUserChange '' machine.wait_for_unit("display-manager.service") machine.wait_until_succeeds("pgrep -f 'systemd --user'") + machine.wait_for_file("/run/user/1000/systemd") ''; deploySystem = '' diff --git a/tests/webapps-agnostic-systemd-user.nix b/tests/webapps-agnostic-systemd-user.nix index cdd85b1..b744fc8 100644 --- a/tests/webapps-agnostic-systemd-user.nix +++ b/tests/webapps-agnostic-systemd-user.nix @@ -100,6 +100,7 @@ makeTest { start_all() machine.wait_for_unit("display-manager.service") machine.wait_until_succeeds("pgrep -f 'systemd --user'") + machine.wait_for_file("/run/user/1000/systemd") # Do an undeploy to force the state to get initialized machine.succeed(