Skip to content
Snippets Groups Projects
Unverified Commit fee55b23 authored by Mayra Cabrera's avatar Mayra Cabrera Committed by GitLab
Browse files

Merge branch 'sh-fix-flaky-specs-16-0' into '16-0-stable-ee'

Fix order-dependent test failure in loose_foreign_keys_spec.rb

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/160237



Merged-by: default avatarMayra Cabrera <mcabrera@gitlab.com>
Approved-by: default avatarMayra Cabrera <mcabrera@gitlab.com>
Co-authored-by: default avatarpkanellidis <pkanellidis@gitlab.com>
parents 3b515016 6f192dc0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -143,6 +143,10 @@ def base_models_for(table)
described_class.instance_variable_set(:@loose_foreign_keys_yaml, loose_foreign_keys_yaml)
end
 
after do
described_class.instance_variable_set(:@loose_foreign_keys_yaml, nil)
end
it 'raises Gitlab::Database::GitlabSchema::UnknownSchemaError error' do
expect { subject }.to raise_error(Gitlab::Database::GitlabSchema::UnknownSchemaError)
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment