tests: fix username conflicts in parallel tests.

Parallel tests sometimes failed because the username generator sometimes
generated duplicate usernames.
This commit is contained in:
evazion
2020-06-11 02:43:19 -05:00
parent e14a577ed9
commit be4646aa6f
2 changed files with 2 additions and 6 deletions

View File

@@ -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"}