Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Clean up socket map at start of test to avoid running out of
Browse files Browse the repository at this point in the history
descriptors when running the tests repeatedly.
  • Loading branch information
Jim Fulton committed Oct 3, 2009
1 parent 6eb1768 commit fbb29d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/zc/ngi/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
$Id$
"""
import threading, unittest
import unittest
import sys
import threading
from zope.testing import doctest
import zc.ngi.testing
import zc.ngi.async
Expand Down Expand Up @@ -151,6 +153,9 @@ def async_evil_setup(test):
#import logging
#logging.getLogger().addHandler(logging.StreamHandler())

# clean up the map.
zc.ngi.async.cleanup_map()

# See if we can break the main loop before running the async test

# Connect to bad port with bad handler
Expand Down

0 comments on commit fbb29d6

Please sign in to comment.