On 2014年03月06日 07:44, shaohef(a)linux.vnet.ibm.com wrote:
From: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
update test_config.py.in
Signed-off-by: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
---
tests/test_config.py.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/test_config.py.in b/tests/test_config.py.in
index 06f9300..a2d5f9d 100644
--- a/tests/test_config.py.in
+++ b/tests/test_config.py.in
@@ -90,6 +90,7 @@ class ConfigTests(unittest.TestCase):
Paths.get_prefix = PluginPaths.get_prefix = get_prefix
paths = Paths()
CACHEEXPIRES = 31536000
+ SESSIONSTIMEOUT = 10
configObj = {
'/': {'tools.trailing_slash.on': False,
'request.methods_with_bodies': ('POST',
'PUT'),
@@ -99,6 +100,7 @@ class ConfigTests(unittest.TestCase):
'tools.sessions.httponly': True,
'tools.sessions.locking': 'explicit',
'tools.sessions.storage_type': 'ram',
+ 'tools.sessions.timeout': SESSIONSTIMEOUT,
'tools.kimchiauth.on': False},
'/css': {
'tools.staticdir.on': True,
Well, I'm not sure this
test is enough, for common scenerio, we check if
given error is triggered after timeout.
Can you consider this way?