Skip to content

Commit

Permalink
nixos/tests/hibernate: Fix netcat flags
Browse files Browse the repository at this point in the history
I'm not sure why 024b501 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
3c3b822 and we're now using LibreSSL's
implementation, which doesn't have a -q flag.

See NixOS#39634 for the pull request
introducing the switch.

[1]: NixOS#19982

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @matthewbauer, @dtzWill, @Mic92
  • Loading branch information
aszlig authored and Synthetica9 committed May 3, 2018
1 parent 5e47581 commit 669e189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/tests/hibernate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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");
'';

})

0 comments on commit 669e189

Please sign in to comment.