[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/tests - testHTTPServer.py:1.1.2.10
Shane Hathaway
shane@cvs.zope.org
Fri, 11 Jan 2002 17:56:48 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Server/tests
In directory cvs.zope.org:/tmp/cvs-serv13171/lib/python/Zope/Server/tests
Modified Files:
Tag: Zope-3x-branch
testHTTPServer.py
Log Message:
Reverted to creating the main select trigger unconditionally, since
the first call to a newly created trigger has no effect and can make
the user wait for 30 seconds or so.
=== Zope3/lib/python/Zope/Server/tests/testHTTPServer.py 1.1.2.9 => 1.1.2.10 ===
-def createSelectTrigger():
- # Creates the default select trigger if it doesn't yet exist.
- if select_trigger.the_trigger is None:
- select_trigger.the_trigger = select_trigger.trigger()
-
-
class Tests(unittest.TestCase):
def setUp(self):
td.setThreadCount(4)
- createSelectTrigger()
self.orig_map_size = len(socket_map)
# Bind to any port on localhost.
self.server = EchoHTTPServer(LOCALHOST, 0, task_dispatcher=td,