diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-19 16:19:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 16:19:45 +0200 |
commit | beb8ca288717a7b4059e27018e708de9c0e1dbde (patch) | |
tree | c91e5372694a71f3252aacd8d6c9fa2ee1f9805c /nixos/tests/hibernate.nix | |
parent | daf40ab165089f2b5f30ebf3dc047f5dfd309d97 (diff) |
nixos/tests/hibernate: prevent non-deterministic failure (#46882)
... that occurred mostly on i686. Improve timing.
With this, the failures are no longer reproducible on my machine.
Diffstat (limited to 'nixos/tests/hibernate.nix')
-rw-r--r-- | nixos/tests/hibernate.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/hibernate.nix b/nixos/tests/hibernate.nix index 1f98bb739f21..274aa7becc82 100644 --- a/nixos/tests/hibernate.nix +++ b/nixos/tests/hibernate.nix @@ -35,8 +35,8 @@ import ./make-test.nix (pkgs: { $machine->waitForOpenPort(4444); $machine->succeed("systemctl hibernate &"); $machine->waitForShutdown; + $probe->waitForUnit("multi-user.target"); $machine->start; - $probe->waitForUnit("network.target"); $probe->waitUntilSucceeds("echo test | nc machine 4444 -N"); ''; |