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.
This commit is contained in:
xeji 2018-09-19 16:19:45 +02:00 committed by GitHub
parent daf40ab165
commit beb8ca2887
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
'';