Skip to content
Snippets Groups Projects
Commit dbaa6a0e authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix intermittent test failures due to accidentally reused class instance between threads (#4287)

parent 7bf7ed61
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ RSpec.describe ResolveRemoteAccountService do
Thread.new do
true while wait_for_start
begin
return_values << subject.call('foo@localdomain.com')
return_values << ResolveRemoteAccountService.new.call('foo@localdomain.com')
rescue ActiveRecord::RecordNotUnique
fail_occurred = true
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment