Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1459

Show
Ignore:
Timestamp:
11/30/06 11:33:59
Author:
fumanchu
Message:

Made test_conn timeouts configurable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test_conn.py

    r1406 r1459  
    66import sys 
    77import time 
     8timeout = 0.1 
     9 
    810 
    911import cherrypy 
     
    130132         
    131133        try: 
    132             httpserver.timeout = 0.1 
     134            httpserver.timeout = timeout 
    133135            self.PROTOCOL = "HTTP/1.1" 
    134136             
     
    160162             
    161163            # Wait for our socket timeout 
    162             time.sleep(0.2) 
     164            time.sleep(timeout * 2) 
    163165             
    164166            # Make another request on the same socket, which should error 

Hosted by WebFaction

Log in as guest/cpguest to create tickets