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

lolsob-rspec
Eugen Rochko 2017-07-21 12:45:13 +02:00 committed by GitHub
parent c35ea3636c
commit 6dce974c85
1 changed files with 1 additions and 1 deletions

View File

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