Commit 7fa6147d authored by Mark Lapierre's avatar Mark Lapierre

Merge branch '323701-make-filepath-unique' into 'master'

Use faker unique method to make sure filepath is always different

See merge request gitlab-org/gitlab!60665
parents f6334237 ecc83d8c
...@@ -115,7 +115,7 @@ module QA ...@@ -115,7 +115,7 @@ module QA
commit.add_files( commit.add_files(
[ [
{ {
file_path: "#{Faker::Lorem.word}.txt", file_path: Faker::File.unique.file_name,
content: Faker::Lorem.sentence content: Faker::Lorem.sentence
} }
] ]
...@@ -129,7 +129,7 @@ module QA ...@@ -129,7 +129,7 @@ module QA
merge_request.project = project merge_request.project = project
merge_request.description = Faker::Lorem.sentence merge_request.description = Faker::Lorem.sentence
merge_request.target_new_branch = false merge_request.target_new_branch = false
merge_request.file_name = "#{Faker::Lorem.word}.txt" merge_request.file_name = Faker::File.unique.file_name
merge_request.file_content = Faker::Lorem.sentence merge_request.file_content = Faker::Lorem.sentence
end end
end end
......
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