Commit 5f7ebfb9 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'rc/fix-transient-failures-following-no-ffaker' into 'master'

Ensure we generate unique usernames otherwise validations fail

See merge request !10436
parents b57ed57f d7e3fadb
......@@ -4,10 +4,10 @@ module Db
class AbuseReport
def self.seed
Gitlab::Seeder.quiet do
(::AbuseReport.default_per_page + 3).times do
(::AbuseReport.default_per_page + 3).times do |i|
reported_user =
::User.create!(
username: "#{FFaker::Internet.user_name}-reported",
username: "reported_user_#{i}",
name: FFaker::Name.name,
email: FFaker::Internet.email,
confirmed_at: DateTime.now,
......
......@@ -3,7 +3,7 @@ require 'spec_helper'
describe API::V3::Members, api: true do
include ApiHelpers
let(:master) { create(:user) }
let(:master) { create(:user, username: 'master_user') }
let(:developer) { create(:user) }
let(:access_requester) { create(:user) }
let(:stranger) { create(:user) }
......
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