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) | |
download | nixpkgs-beb8ca288717a7b4059e27018e708de9c0e1dbde.tar nixpkgs-beb8ca288717a7b4059e27018e708de9c0e1dbde.tar.gz nixpkgs-beb8ca288717a7b4059e27018e708de9c0e1dbde.tar.bz2 nixpkgs-beb8ca288717a7b4059e27018e708de9c0e1dbde.tar.lz nixpkgs-beb8ca288717a7b4059e27018e708de9c0e1dbde.tar.xz nixpkgs-beb8ca288717a7b4059e27018e708de9c0e1dbde.tar.zst nixpkgs-beb8ca288717a7b4059e27018e708de9c0e1dbde.zip |
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 1f98bb739f2..274aa7becc8 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"); ''; |