Changeset 1845
- Timestamp:
- 01/13/08 15:16:49
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-3.0.x/cherrypy/test/test_session.py
r1707 r1845 26 26 'tools.sessions.storage_type' : 'ram', 27 27 'tools.sessions.storage_path' : localDir, 28 'tools.sessions.timeout': 0.017, # 1.02 secs29 'tools.sessions.clean_freq': 0.017,28 'tools.sessions.timeout': (1.0 / 60), 29 'tools.sessions.clean_freq': (1.0 / 60), 30 30 } 31 31 … … 90 90 class SessionTest(helper.CPWebCase): 91 91 92 def tearDown(self): 93 # Clean up sessions. 94 for fname in os.listdir(localDir): 95 if fname.startswith(sessions.FileSession.SESSION_PREFIX): 96 os.unlink(os.path.join(localDir, fname)) 97 92 98 def test_0_Session(self): 93 99 self.getPage('/testStr') … … 110 116 self.assertStatus(200) 111 117 112 # Wait for the session.timeout (1 .02 secs)113 time.sleep( 1.25)118 # Wait for the session.timeout (1 second) 119 time.sleep(2) 114 120 self.getPage('/') 115 121 self.assertBody('1')

