Skip to content

Fix order-dependent spec failure in imap_authentication_check_spec.rb

When spec/lib/gitlab/mail_room/mail_room_spec.rb is run before spec/lib/system_check/incoming_email/imap_authentication_check_spec.rb, Gitlab::MailRoom.enabled_configs leaks state from one test to another.

To fix this, we should clean up the instance variable after the tests finish.

Closes #332706 (closed)

Edited by Stan Hu

Merge request reports

Loading