# HG changeset patch # User Mads Kiilerich # Date 2015-02-26 22:57:38 # Node ID 5e94c0f9720c908d8be2d4b717cf3e63db2bbc96 # Parent 570a4e40f0bb59f44bb56625eb067d7aff8fa321 tests: decrease sql_cache_short beaker config to 1 s to match hack in fixture.anon_access 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