提交 37794885 编写于 作者: R Ryuta Kamizono

Clear dirty `schema_cache` after `dump_schema_cache`

`dump_schema_cache` fills `schema_cache` even if the test that modifies
the schema has properly cleared the schema cache.

Fixes #31463.
上级 48fbc4ae
......@@ -110,6 +110,7 @@ def test_dump_schema_cache
ActiveRecord::Tasks::DatabaseTasks.dump_schema_cache(ActiveRecord::Base.connection, path)
assert File.file?(path)
ensure
ActiveRecord::Base.clear_cache!
FileUtils.rm_rf(path)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册