diff options
Diffstat (limited to 'test/testhelp.rb')
-rw-r--r-- | test/testhelp.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/testhelp.rb b/test/testhelp.rb index 42ead2c..4fe112d 100644 --- a/test/testhelp.rb +++ b/test/testhelp.rb @@ -64,3 +64,11 @@ def hit(uris) return results end + +# process_based_port provides a port number, usable for TCP and UDP +# connections based on $$ and with a 5000 as base. +# this is required if you perform several builds of mongrel in parallel +# (like continuous integration systems) +def process_based_port + 5000 + $$ % 1000 +end
\ No newline at end of file |