tests: fix username conflicts in parallel tests.
Parallel tests sometimes failed because the username generator sometimes generated duplicate usernames.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
FactoryBot.define do
|
||||
factory(:post) do
|
||||
sequence :md5 do |n|
|
||||
n.to_s
|
||||
end
|
||||
md5 { SecureRandom.hex(32) }
|
||||
uploader
|
||||
uploader_ip_addr {"127.0.0.1"}
|
||||
tag_string {"tag1 tag2"}
|
||||
|
||||
Reference in New Issue
Block a user