changeset 4849:5e94c0f9720c

tests: decrease sql_cache_short beaker config to 1 s to match hack in fixture.anon_access
author Mads Kiilerich <madski@unity3d.com>
date Thu, 26 Feb 2015 23:57:38 +0100
parents 570a4e40f0bb
children a40824531f68
files kallithea/tests/fixture.py test.ini
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/fixture.py	Wed Feb 25 14:06:27 2015 +0100
+++ b/kallithea/tests/fixture.py	Thu Feb 26 23:57:38 2015 +0100
@@ -57,7 +57,7 @@
                 anon.active = status
                 Session().add(anon)
                 Session().commit()
-                time.sleep(1.5)  # must sleep for cache (1s to expire)
+                time.sleep(1.5)  # hack: wait for beaker sql_cache_short to expire
 
             def __exit__(self, exc_type, exc_val, exc_tb):
                 anon = User.get_default_user()
--- a/test.ini	Wed Feb 25 14:06:27 2015 +0100
+++ b/test.ini	Thu Feb 26 23:57:38 2015 +0100
@@ -321,7 +321,7 @@
 beaker.cache.long_term.key_length = 256
 
 beaker.cache.sql_cache_short.type=memory
-beaker.cache.sql_cache_short.expire=10
+beaker.cache.sql_cache_short.expire=1
 beaker.cache.sql_cache_short.key_length = 256
 
 beaker.cache.sql_cache_med.type=memory