nixos/tests/hibernate: Fix netcat flags

I'm not sure why 024b501907 used -q 0
because even netcat-openbsd has the -N flag which IMO is the better way
to shutdown the socket on EOF.

Our default netcat implementation has changed once again[1] in
3c3b82234a and we're now using LibreSSL's
implementation, which doesn't have a -q flag.

See https://github.com/NixOS/nixpkgs/pull/39634 for the pull request
introducing the switch.

[1]: https://github.com/NixOS/nixpkgs/pull/19982

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @matthewbauer, @dtzWill, @Mic92
This commit is contained in:
aszlig 2018-04-29 23:39:25 +02:00
parent ff3fe105f2
commit 146cb02542
No known key found for this signature in database
GPG Key ID: 684089CE67EBB691
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ import ./make-test.nix (pkgs: {
$machine->waitForShutdown;
$machine->start;
$probe->waitForUnit("network.target");
$probe->waitUntilSucceeds("echo test | nc machine 4444 -q 0");
$probe->waitUntilSucceeds("echo test | nc machine 4444 -N");
'';
})