croc.passthru.tests: partially revert 77c0a490

`--overwrite` is no longer needed for receiving text
launchpad/nixpkgs/master
Markus S. Wamser 3 years ago
parent d9e8a89085
commit 286bca1830
  1. 3
      pkgs/tools/networking/croc/test-local-relay.nix

@ -12,8 +12,7 @@ stdenv.mkDerivation {
${croc}/bin/croc --relay localhost:11111 send --code correct-horse-battery-staple --text "$MSG" &
# wait for things to settle
sleep 1
# receive, as of croc 9 --overwrite is required for noninteractive use
MSG2=$(${croc}/bin/croc --overwrite --relay localhost:11111 --yes correct-horse-battery-staple)
MSG2=$(${croc}/bin/croc --relay localhost:11111 --yes correct-horse-battery-staple)
# compare
[ "$MSG" = "$MSG2" ] && touch $out
'';

Loading…
Cancel
Save