test/setup: TempServer saner port acquiry
commita6cebdeeb3f89b8097abbe4a5fddd798e16c8758
authorEric Wong <normalperson@yhbt.net>
Tue, 23 Dec 2008 04:56:57 +0000 (22 20:56 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 23 Dec 2008 23:17:28 +0000 (23 15:17 -0800)
treee01a54f2437bcffb76f7e31655e6c5cf784c79b8
parentdd2089b2646e77fef396e2e62ad313851bfbf04e
test/setup: TempServer saner port acquiry

Originally I had a process-based port thing stolen from Mongrel
(and subsequently screwed up).  Just use a random port that's
not in use right now.  Additionlly, retry if we get EACCESS in
case we're on a strange system where binding certain ports are
not allowed.
test/setup.rb