Skip to content

Commit

Permalink
Merge pull request #1695 from ppenguin/improve-wait_for_port
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo authored Feb 8, 2025
2 parents c22a306 + bfe7bd4 commit ebaa744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
local port=$1
local timeout=''${2:-15}
timeout $timeout bash -c "until echo > /dev/tcp/localhost/$port; do sleep 0.5; done"
timeout $timeout bash -c "until ${pkgs.libressl.nc}/bin/nc -z localhost $port 2>/dev/null; do sleep 0.5; done"
}
export -f wait_for_port
Expand Down

0 comments on commit ebaa744

Please sign in to comment.