提交 db6df74b 编写于 作者: A Akira Matsuda

Make sure to clear query cache to prevent sporadic test failure

上级 8496d0c8
......@@ -442,6 +442,10 @@ def assert_cache(state, connection = ActiveRecord::Base.connection)
class QueryCacheExpiryTest < ActiveRecord::TestCase
fixtures :tasks, :posts, :categories, :categories_posts
def teardown
Task.connection.clear_query_cache
end
def test_cache_gets_cleared_after_migration
# warm the cache
Post.find(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册