Skip to content

Commit

Permalink
nixos/tests/hibernate: prevent non-deterministic failure (#46882)
Browse files Browse the repository at this point in the history
... that occurred mostly on i686. Improve timing.
With this, the failures are no longer reproducible on my machine.
  • Loading branch information
xeji committed Sep 19, 2018
1 parent daf40ab commit beb8ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/tests/hibernate.nix
Expand Up @@ -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");
'';

Expand Down

0 comments on commit beb8ca2

Please sign in to comment.