diff --git a/kallithea/tests/fixture.py b/kallithea/tests/fixture.py --- a/kallithea/tests/fixture.py +++ b/kallithea/tests/fixture.py @@ -57,7 +57,7 @@ class Fixture(object): 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() diff --git a/test.ini b/test.ini --- a/test.ini +++ b/test.ini @@ -321,7 +321,7 @@ beaker.cache.long_term.expire=36000 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