Commit a6686e3a authored by Stan Hu's avatar Stan Hu

Merge branch 'fix_flaky_dast_site_profile_specs' into 'master'

Always generate unique name for `DastSiteProfile` in specs

See merge request gitlab-org/gitlab!50361
parents d3bd3468 65756a48
......@@ -2,7 +2,9 @@
FactoryBot.define do
factory :dast_site_profile do
name { FFaker::Product.product_name }
sequence :name do |i|
"#{FFaker::Product.product_name.truncate(200)} - #{i}"
end
before(:create) do |dast_site_profile|
dast_site_profile.project ||= FactoryBot.create(:project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment