Transient failure in spec/models/user_spec.rb
As seen in https://gitlab.com/gitlab-org/gitlab-ce/builds/11949908:
1) User.search_with_secondary_emails returns users with a partially matching name
Failure/Error: expect(search_with_secondary_emails(user.name[0..2])).to eq([user])
expected: [#<User id: 164, email: "yasmine@kris.info", created_at: "2017-03-10 02:14:17", updated_at: "2017-03-...organization: nil, authorized_projects_populated: nil, notified_of_own_activity: false, ghost: nil>]
got: #<ActiveRecord::Relation [#<User id: 165, email: "annalee@lehnerstroman.info", created_at: "2017-03-1...rganization: nil, authorized_projects_populated: nil, notified_of_own_activity: false, ghost: nil>]>
(compared using ==)
Diff:
@@ -1,2 +1,3 @@
-[#<User id: 164, email: "yasmine@kris.info", created_at: "2017-03-10 02:14:17", updated_at: "2017-03-10 02:14:17", name: "Concetta Volkman", admin: false, projects_limit: 42, skype: "", linkedin: "", twitter: "", authentication_token: "wjWPyc8eUzMwezcWRKGe", bio: nil, username: "doria2652", can_create_group: true, can_create_team: false, state: "active", color_scheme_id: 1, password_expires_at: nil, created_by_id: nil, last_credential_check_at: nil, avatar: nil, hide_no_ssh_key: false, website_url: "", notification_email: "yasmine@kris.info", hide_no_password: false, password_automatically_set: false, location: nil, encrypted_otp_secret: nil, encrypted_otp_secret_iv: nil, encrypted_otp_secret_salt: nil, otp_required_for_login: false, otp_backup_codes: nil, public_email: "", dashboard: 0, project_view: 2, consumed_timestep: nil, layout: 0, hide_project_limit: false, otp_grace_period_started_at: nil, ldap_email: false, external: false, incoming_email_token: "6fcg5vixf9o44xiiojoqawksp", organization: nil, authorized_projects_populated: nil, notified_of_own_activity: false, ghost: nil>]
+[#<User id: 165, email: "annalee@lehnerstroman.info", created_at: "2017-03-10 02:14:17", updated_at: "2017-03-10 02:14:17", name: "Concetta Steuber", admin: false, projects_limit: 42, skype: "", linkedin: "", twitter: "", authentication_token: "zVkiXsuA-cFYq5Ajmoxx", bio: nil, username: "meghann2653", can_create_group: true, can_create_team: false, state: "active", color_scheme_id: 1, password_expires_at: nil, created_by_id: nil, last_credential_check_at: nil, avatar: nil, hide_no_ssh_key: false, website_url: "", notification_email: "annalee@lehnerstroman.info", hide_no_password: false, password_automatically_set: false, location: nil, encrypted_otp_secret: nil, encrypted_otp_secret_iv: nil, encrypted_otp_secret_salt: nil, otp_required_for_login: false, otp_backup_codes: nil, public_email: "", dashboard: 0, project_view: 2, consumed_timestep: nil, layout: 0, hide_project_limit: false, otp_grace_period_started_at: nil, ldap_email: false, external: false, incoming_email_token: "cmhr43kf4l6gfh50lztr5vlox", organization: nil, authorized_projects_populated: nil, notified_of_own_activity: false, ghost: nil>,
+ #<User id: 164, email: "yasmine@kris.info", created_at: "2017-03-10 02:14:17", updated_at: "2017-03-10 02:14:17", name: "Concetta Volkman", admin: false, projects_limit: 42, skype: "", linkedin: "", twitter: "", authentication_token: "wjWPyc8eUzMwezcWRKGe", bio: nil, username: "doria2652", can_create_group: true, can_create_team: false, state: "active", color_scheme_id: 1, password_expires_at: nil, created_by_id: nil, last_credential_check_at: nil, avatar: nil, hide_no_ssh_key: false, website_url: "", notification_email: "yasmine@kris.info", hide_no_password: false, password_automatically_set: false, location: nil, encrypted_otp_secret: nil, encrypted_otp_secret_iv: nil, encrypted_otp_secret_salt: nil, otp_required_for_login: false, otp_backup_codes: nil, public_email: "", dashboard: 0, project_view: 2, consumed_timestep: nil, layout: 0, hide_project_limit: false, otp_grace_period_started_at: nil, ldap_email: false, external: false, incoming_email_token: "6fcg5vixf9o44xiiojoqawksp", organization: nil, authorized_projects_populated: nil, notified_of_own_activity: false, ghost: nil>]
# ./spec/models/user_spec.rb:724:in `block (3 levels) in <top (required)>'
Finished in 43 minutes 54 seconds (files took 38.2 seconds to load)
1446 examples, 1 failure
Failed examples:
rspec ./spec/models/user_spec.rb:723 # User.search_with_secondary_emails returns users with a partially matching name