diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-12-06 12:50:04 +0100 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2021-04-29 11:40:00 +0200 |
commit | 243521f52f9e24033e18650adb5e37ae2a1f3025 (patch) | |
tree | b736a2b15184903f93c27ad3ea405b481b3a50c6 /nixos/tests/lxd.nix | |
parent | c1b8fdf83b9f7dd9172879334d8fef4ccc4c0f9a (diff) |
nixos/lxd: fix race condition in test
Diffstat (limited to 'nixos/tests/lxd.nix')
-rw-r--r-- | nixos/tests/lxd.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/lxd.nix b/nixos/tests/lxd.nix index ab56b75c02e4e..889ca9598e3f3 100644 --- a/nixos/tests/lxd.nix +++ b/nixos/tests/lxd.nix @@ -96,6 +96,7 @@ in { ## limits.cpu ## machine.succeed("lxc config set test limits.cpu 1") + machine.succeed("lxc restart test") # Since Alpine doesn't have `nproc` pre-installed, we've gotta resort # to the primal methods @@ -105,6 +106,7 @@ in { ) machine.succeed("lxc config set test limits.cpu 2") + machine.succeed("lxc restart test") assert ( "2" @@ -115,6 +117,7 @@ in { ## limits.memory ## machine.succeed("lxc config set test limits.memory 64MB") + machine.succeed("lxc restart test") assert ( "MemTotal: 62500 kB" @@ -122,6 +125,7 @@ in { ) machine.succeed("lxc config set test limits.memory 128MB") + machine.succeed("lxc restart test") assert ( "MemTotal: 125000 kB" |