Skip to content

Commit 19697ab

Browse files
committed
Reduce number of checks as it's no longer doing the random allocation attempts; also this was clogging windows.
1 parent 41902ea commit 19697ab

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

postgresql/test/test_python.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ class anob(object):
139139

140140
class test_socket(unittest.TestCase):
141141
def testFindAvailable(self):
142-
# the port is randomly generated, so make a few trials before
143-
# determining success.
144-
for i in range(100):
142+
# Host sanity check; this is likely fragile.
143+
for i in range(4):
145144
portnum = find_available_port()
146145
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
147146
try:

0 commit comments

Comments
 (0)