mirror of
https://github.com/Homebrew/brew.git
synced 2026-10-28 09:34:42 +08:00
free_port_spec: re-add comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
36a633a4d7
commit
9ddeeed579
1 file changed
+4
@@ -8,6 +8,10 @@ RSpec.describe Homebrew::FreePort do
|
||||
|
||||
describe "#free_port" do
|
||||
it "returns a free TCP/IP port" do
|
||||
# IANA recommends:
|
||||
# - User ports: 1024–49151
|
||||
# - Dynamic ports: 49152–65535
|
||||
# For this test we accept any free port in the full 1024–65535 range.
|
||||
min_port = 1024
|
||||
max_port = 65535
|
||||
port = instance.free_port
|
||||
|
||||
Reference in new issue
Block a user