summary refs log tree commit diff
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-09-19 16:19:45 +0200
committerGitHub <noreply@github.com>2018-09-19 16:19:45 +0200
commitbeb8ca288717a7b4059e27018e708de9c0e1dbde (patch)
treec91e5372694a71f3252aacd8d6c9fa2ee1f9805c
parentdaf40ab165089f2b5f30ebf3dc047f5dfd309d97 (diff)
downloadnixpkgs-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.
-rw-r--r--nixos/tests/hibernate.nix2
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");
     '';