diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-16 15:21:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-16 15:21:55 +0300 |
commit | 5ac6436c4c2673e78252509c85fe000935d9f3a3 (patch) | |
tree | b6206e60f1c8caf5c9e5955ce1047700072760cc /spec/support | |
parent | 554bb1eb1f1aa5aa45b5e4a1ee1557da0ccc59c0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/database/click_house/hooks.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/database/click_house/hooks.rb b/spec/support/database/click_house/hooks.rb index e4e3e64a3cb..8c8afdbc689 100644 --- a/spec/support/database/click_house/hooks.rb +++ b/spec/support/database/click_house/hooks.rb @@ -37,6 +37,10 @@ class ClickHouseTestRunner @ensure_schema = true end + def reset_schema_cache! + @ensure_schema = nil + end + private def tables_for(db) @@ -53,6 +57,7 @@ RSpec.configure do |config| with_net_connect_allowed do if example.example.metadata[:click_house] == :without_migrations click_house_test_runner.clear_db + click_house_test_runner.reset_schema_cache! else click_house_test_runner.ensure_schema click_house_test_runner.truncate_tables |