We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41902ea commit 19697abCopy full SHA for 19697ab
1 file changed
postgresql/test/test_python.py
@@ -139,9 +139,8 @@ class anob(object):
139
140
class test_socket(unittest.TestCase):
141
def testFindAvailable(self):
142
- # the port is randomly generated, so make a few trials before
143
- # determining success.
144
- for i in range(100):
+ # Host sanity check; this is likely fragile.
+ for i in range(4):
145
portnum = find_available_port()
146
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
147
try:
0 commit comments